This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Change css classes #46
Comments
You can edit the template and provide your own on the render method on the table function: DataTable::table()
->addColumn($columns)
->setUrl($ajaxRouteToTableData)
->render('my.datatable.template') |
If you just want to change the class name use the setClass method on the table object: DataTable::table()
->addColumn($columns)
->setUrl($ajaxRouteToTableData)
->setClass('myCustomClass')
->render('my.datatable.template') |
Thank you! In time have any clue to add checkbox columns? And If I have large amount of data, the "render" is too slow and paginate and filter are too slow too. Unfortunatelly I have a view with about 21.000 rows but only 8 columns... Another need is add some buttons in a cell (a td with 5 or 6 buttons) Any clue to do it? Thanks in advance! |
What Engine are you using? If you need more speed you should use the QueryEngine. As you can return any html in the addColumn method it should be no problem to return a checkbox or even a buttongroup. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
First I would like to thank you for this great job!
But I have a question: Is there any way to change the class of the element table.
example:
Thank you for your attention!
The text was updated successfully, but these errors were encountered: