Ho was to select all for CRUD selection check boxes?



I am using CRUD addSelection() to perform actions on records. I frequently need to select 20+ records. Does anyone know how to create a select all action to select all checboxes on CRUD grid?




I use this:

        $actions = $grid->menu->addMenu(['icon' => 'tasks']);

    $actions->addItem(['Check All', 'icon' => 'check square outline'])->on(

    $actions->addItem(['Uncheck All', 'icon' => 'square outline'])->on(

@zak Thanks! This worked perfectly.

1 Like