Customizing Buttons?
Customizing Buttons?
jLinux
Posts: 981Questions: 73Answers: 75
Im using DT to keep track of assets on a new application im using, I like the functionality behind all of the TableTools buttons (Copy,Print,Excel,CSV,PDF and the Select/Deselect All Rows), however I hate where they are at. How can I create links that use the same functionality? Short of doing something like using CSS to hide them and using jQuery to trigger clicks on the hidden links... lol
This discussion has been closed.
Answers
After some research and testing, I know i can initiate the buttons and add a little but of customization to them..
Which works ok, but im trying to add a lot more style to them, (which involves more than just adding classes) and putting them into a side panel which I created..
Heres a screenshot of the results of the above, and where I need it to be (On the right)
http://d.pr/i/10wTF
P.S. The export buttons on the right panel dont work, those are what I want to get working somehow, via the Table Tools. I tried some hacks like..
and
With no avail.. Not that I liked that approach anyways
The HTML for the button format that im trying to achieve is..
I tried placing the TableTools buttons in a div with the btn-group class, and adding "btn btn-primary" to them via the fnInit, but it doesnt work, im not sur eif its because the TableTools buttons are actually span tags inside a hyperlink or not
I seem to have figured it out.. Tweaked the DIV that the buttons are placed in, and heres the code for the datatables, incase anyone was curious.
Kinda moved the actual underlying issue here: http://datatables.net/forums/discussion/29188/tabletools-csv-pdf-xls-print-export-onclick-functionality