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?

psicograficipsicografici 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

Answers

  • AdiscoveryAdiscovery Posts: 1Questions: 0Answers: 0

    Hi pcicografici,

    I am facing the same problem. Have you solved it, yet?

  • allanallan Posts: 63,889Questions: 1Answers: 10,530 Site admin

    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

  • allanallan Posts: 63,889Questions: 1Answers: 10,530 Site admin

    See this thread for a working example posted by @nense.

    Allan

This discussion has been closed.