"COPY" button
"COPY" button
Hello. I’ve tried hard to find the answer for this before posting in DataTables. When clicking the ‘copy’ button the result also copies the page name of the website and adds a blank row in between the data and the page name. I have been trying to find a way to have the copy button only copy the the table headers and data without adding the page name at the top and a blank row at the of the copied data. Its frustrating because when I download as CSV it only downloads the headers and data of the table – which is what is wanted. Why does COPY add the blank row and the page title? Thank you in advance for any help and support on this.. I am actually using DataTables via Google Inline Spreadsheet Viewer for WP.
Answers
This example along with referenced buttons.exportInfo() docs should help.
https://datatables.net/extensions/buttons/examples/html5/titleMessage.html
Kevin
this has pointed me in the right direction. Not solved yet but I'll figure it out eventually.. I wasn't aware of the different 'title' 'message top' etc. in the buttons. Thank you for the link
Set the title and messageTop to be
null
to have it not include them in the output.Allan