Adding a Custom Button

Adding a Custom Button

NettSiteNettSite Posts: 36Questions: 11Answers: 2

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

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Answer ✓

    The key would be to move whatever code you were using in fnClick to the Button's action callback. Documentation on how to create custom buttons is available here.

    Allan

  • NettSiteNettSite Posts: 36Questions: 11Answers: 2

    Hi Allan,

    Thanks - figured it out. Sometimes a bit difficult finding the right thread to pull to untangle the knot!

This discussion has been closed.