Buttons: Call button actions from my own buttons

Buttons: Call button actions from my own buttons

Wooly65Wooly65 Posts: 37Questions: 12Answers: 0
edited June 25 in Free community support

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

  • colincolin Posts: 14,458Questions: 1Answers: 2,465
    Answer ✓

    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

  • Wooly65Wooly65 Posts: 37Questions: 12Answers: 0

    Thank, this is exactly what I need. Sorry I didn't find this in the other thread before bothering you.

Sign In or Register to comment.