BulkActionColumn Type

This type of column allows to add bulk action checkboxes to your Grid.

Available options


bulk_field: string required

Record field name which will be used as bulk action checkbox value.

Example usage

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

$productColumn = new BulkActionColumn('bulk_action');
$productColumn->setName(''); // it is common set empty name for bulk action columns
     'bulk_field' => 'id_product',

$columns = new ColumnCollection();