Examples of data export not using TableTools?
Examples of data export not using TableTools?
Hi,
I'm trying to make my export button generate an Excel file using buttons.exportData(), but I have a hard time finding examples of how this is done all the way. When I use the brief example from https://datatables.net/reference/api/buttons.exportData() I get an error saying "Uncaught TypeError: Cannot read property 'exportData' of undefined".
I can find many good examples of using TableTools for doing this, but that seems like a bad idea since TableTools has been retired.
Ideas?
Answers
The Buttons examples have lots of examples. Look at the HTML5 examples near the bottom of the page.
If you still have problems, please link to a test case showing the issue. The error you are seeing sounds like you haven't included Buttons.
Allan