How to switch from Flash buttons to Html5 buttons?
How to switch from Flash buttons to Html5 buttons?
We have been using Flash buttons with Tabletools and need to convert these to Html5 buttons but I haven't been able to figure out how to do that. Here are the scripts we have been using in our footer:
And here is where the datatable is initialized:
From what I've found out so far, I believe I need to not use tabletools anymore as that will always use flash buttons, is that correct? When I comment out tabletools and add in:
"buttons" : [
"copy", "excel"
]
it doesn't work. How can I switch from using the Flash buttons that don't work anymore to Html5 buttons? I downloaded newer versions of datatables.min.js along with dataTbales.buttons.min.js, jszip.js, pdfmake.min.js, vfs_fonts.js and buttons.html5.min.js and you can see where they are in the footer commented out because I haven't gotten them to work yet. Any advice is appreciated.
Answers
You are loading datatables.js in the second line and it looks like you are loading it in the first commented out line. Only load it once. Thats the only issue I see. You can use the Download Builder to make sure you have all the correct files.
If you still have troubles we will probably need to see a link to your page or a test case replicating the problem so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin