ActionColumn Type

This column type allows adding actions to your Grid rows. The action targets the corresponding row. For more info about possible actions see Actions reference.

Available options

Properties Type Expected value
actions array default: null List of actions assigned to each row.

Example usage

use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\ActionColumn;
use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;

$actionColumn = new ActionColumn('actions');
     'actions' => [
        ->add((new LinkRowAction('delete'))
                'route' => 'admin_custom_route',
                'route_param_name' => 'mailId',
                'route_param_field' => 'id_mail',
                'confirm_message' => 'Delete selected item?',

$columns = new ColumnCollection();