How to add checkboxes to custom DataGrid
-
Hello,
I am trying to add some checkboxes at the start of each row on a custom datagrid, but can't make it work. I am now trying to add checkboxes via js window.onload, but I don't think it is the best approach (nor is it working).
Can anyone help me out? -
Hi @TheBlindHawk,
Please check this docs,
https://devdocs.bagisto.com/1.x/advanced/datagrid.html -
Hi@devansh-webkul
Thank you for the reply, unfortunately there is no documentation on how to add checkboxes in the link you sent me.
After a bit of looking around I decided that the best way to add checkboxes was probably to customize the src/packages/Webkul/Ui/src/DataGrid/DataGrid.php file.
I am now working on it, but please share if you have any tips on how to. -
My bad, I did not notice the enable mass actions boolean.
I am now checking it out. -
Exactly.