Defining the table header values to use when exporting a table
Defining the table header values to use when exporting a table
![MagicSquares](https://secure.gravatar.com/avatar/9bf91f8b3a76f30251b60c9e72594d8c/?default=https%3A%2F%2Fvanillicon.com%2F9bf91f8b3a76f30251b60c9e72594d8c_200.png&rating=g&size=120)
I have a table where the table header contains one row, with column headers. However, those the table cells those column headers also include JavaScript code that displays a tool tip when the mouse hovers over the column header label.
When I export the table, it is including the tool tips with the exported data.
Is there a way to force the export functions to use only the column header (or to provide my own data value that it should use instead of what is displayed in the table?
This question has an accepted answers - jump to answer
Answers
Use exportOptions, format, header like this for example:
https://datatables.net/reference/button/excel
Search for "exportOptions" and follow the links provided.