rapyd-laravel icon indicating copy to clipboard operation
rapyd-laravel copied to clipboard

How to add the checkbox on the datagrid?

Open yljphp opened this issue 8 years ago • 3 comments

for example:

image

yljphp avatar Mar 22 '16 06:03 yljphp

try to add a custom column and use the blade syntax

tacone avatar Mar 22 '16 09:03 tacone

Try using $grid->row(function ($row){ $row->cell('checkbox')->value = //Assign your html checkbox here; });

CHOMNANP avatar Dec 05 '16 04:12 CHOMNANP

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' >";
          });

JayGajjar avatar Jan 16 '17 08:01 JayGajjar