BulkActionColumn Type

This type of column allows to add bulk action checkboxes to your Grid. This only add the checkbox in the grid, you can then manage bulk actions via javascript.

Available options

Properties Type Expected value
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;

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

$columns = new ColumnCollection();