Buttons extension not showing up
Buttons extension not showing up
Hi guys,
I would love to export my tables as excel(xls, not csv, as my data has paragraphs of text), so I looked into the TableTools extension, but it looks like it has been replaced with Buttons.
So tried fiddling around with that, but couldn't get the buttons to show up, and I can't for the life of me figure out what's wrong.
DataTables Debug:
http://debug.datatables.net/obibur
DataTables Live:
http://live.datatables.net/fipimuna/3/edit?html,css,js,output
Any help would be much appreciated.
Thanks!
Answers
Hi,
You need to use the
B
option in thedom
option - like in the examples. You'll also need to include the HTML5 and / or Flash export buttons and any dependencies they have. The download builder is a good way of doing that.Allan
thanks! adding the
B
indom
worked!Hello,
I had buttons working with TableTools, and am having issues adding them with Buttons. I used the download builder and am using the table in a JQuery accordion. Suggestions?
Thank you
Works
Buttons not displaying
Buttons is a very modular extension. Did you load all the dependent js and css files? Show your work :)
Yup - my suggestion is to give a link to the page you are having problems with, as per the forum rules, so we can debug it and offer some help :-)
Allan
Sorry, missed that rule and thanks for the direction. The debugger helped me find out that the download builder CDN was not being used. It is now and the buttons appear, however copy and Excel aren't working, print and PDF are.
Debug results http://debug.datatables.net/utokat
Can you link to the page please.
I don't immediately see why that wouldn't be working, although given that you are using jQuery UI, you probably don't want to use
dom
- instead using the method shown in this example.Allan
Hi Allan,
Buttons 1.0.1 fixed the Excel issue, thank you!