omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
252 stars 113 forks source link

How to add a checkbox in the header like this #172

Closed ridjy closed 3 years ago

ridjy commented 3 years ago

$dataTableFactory->create() ->add('selection', TextColumn::class, ['label' => ' <input type="checkbox" name="selectAll" id="selectAll"> '])

curry684 commented 3 years ago

Raw markup is not supported in non-content fields, use Javascript to find and decorate the headers instead.

ridjy commented 3 years ago

Thanks for your reply, I've done this in javascript and it's ok

curry684 commented 3 years ago

👍