Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82019

How to call TableTools functions instead of using the buttons

$
0
0
I'm sure this is fairly simple, however after searching i didn't find any thread asking about this.

I'd like to call TableTools functions directly, so i can integrate them in my existing UI.
For example, my UI has a menu bar with drop-down. I'd like to have a "Print" sub-menu with "Print (all columns)" and "Print (current columns)" (using ColVis). I'd also like to have a similar sub-menu for Excel.

Should i make custom buttons using "aButtons" and then use jQuery appendTo to move them somewhere else? While this would work, it doesn't seem like it would be the best method to achieve the result i'm looking for.
Being able to directly call the functions from the <A>'s inside my <ul>/<li> seems to be the best option. Anyone's done that or could put me in the right direction?

Thanks in advance!

Viewing all articles
Browse latest Browse all 82019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>