I don't want to export columns that contain cells with buttons
I don't want to export columns that contain cells with buttons

Hi, i have some tables in different pages and i export them included a library js which contains Datatables.
In some tables there is a column with cells that contains buttons and i want that this column not to be exported.
This column there is in different positions in tables, so I can't do that --> columns: [.....].
How can i do it?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This Buttons column selectors example shows how. Make sure to look at the
column-selector
for all the options, like classname, that you can use.Kevin
Yes, but i don't want to select col from html with class, but in js.
Not sure what you mean. Please build a test case showing an example of what you have and how you want to select the columns.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin