Adding a Custom Button
Adding a Custom Button
Hi,
I had a working custom button which used "TableTools" to perform an action on all the rows of a table - a check box in each row was either checked or unchecked when the button was clicked, and the button text changed between "Select All" and "Select None" sequentially.
I have upgraded Datatables and Editor to all the latest versions using the CDN (except for Editor) and made some changes, and removed TableTools, as I understand it has been retired.
How can I achieve something similar with "Buttons"?
This question has an accepted answers - jump to answer
Answers
The key would be to move whatever code you were using in
fnClick
to the Button'saction
callback. Documentation on how to create custom buttons is available here.Allan
Hi Allan,
Thanks - figured it out. Sometimes a bit difficult finding the right thread to pull to untangle the knot!