Buttons: Call button actions from my own buttons
Buttons: Call button actions from my own buttons
Was curious if the DataTables button actions (Copy, CSV, Excel, ...) are exposed so they can be called by my personal buttons? I was going to post an image but the Edit Discussion page is throwing console errors: ButtonBar is not defined
I know about button().trigger() but I believe the DataTables buttons would need to create and shown for me to call. I would prefer to not have any DataTable buttons shown for my current look and fell.
This question has an accepted answers - jump to answer
Answers
It needs to be defined, but doesn't have to be visible. I just added an example to the end of this thread to demonstrate that.
Colin
Thank, this is exactly what I need. Sorry I didn't find this in the other thread before bothering you.