Is it possible, by button, print or export data-attribute instead of the data in the cell?
Is it possible, by button, print or export data-attribute instead of the data in the cell?
psicografici
Posts: 1Questions: 1Answers: 0
Hello! First of all thanks for this awesome plugin.
I am using the Buttons extension extensively and I am wondering if there would be any options to print or export data-attribute instead of the data in the cell.
Example: like data-search attribute for search option
https://datatables.net/examples/advanced_init/html5-data-attributes.html
This discussion has been closed.
Answers
Hi pcicografici,
I am facing the same problem. Have you solved it, yet?
Yes - you can use the original data option to do this - see this example. Its easier if you JSON source the table, but also possible with a DOM sourced table.
Allan
See this thread for a working example posted by @nense.
Allan