Buttons: Call button actions from my own buttons

Buttons: Call button actions from my own buttons

Wooly65Wooly65 Posts: 86Questions: 25Answers: 1
edited June 2022 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: 15,240Questions: 1Answers: 2,599
    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: 86Questions: 25Answers: 1

    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.