rapyd-laravel
rapyd-laravel copied to clipboard
How to add the checkbox on the datagrid?
for example:
try to add a custom column and use the blade syntax
Try using $grid->row(function ($row){ $row->cell('checkbox')->value = //Assign your html checkbox here; });
This one worked for me
$this->grid->add('select', 'Select')->cell( function( $value, $row) {
$id = $row['attributes']['id'];
return "<input type='checkbox' name='selectedIDs[] id='$id' >";
});