Print export and column selector with ':not' shift column classes
Print export and column selector with ':not' shift column classes
I think I've found a bug when using the print button with the export options set to exclude certain columns via a column-selector like ':not(<class>)'.
Reproduced in JSBin here: http://live.datatables.net/mamepafu/1/edit?html,css,js,output .
First column (Name) has a noExport class applied which sets color to red.
When printing, columns with class noExport are ignored by setting the exportOptions.column: ':not(.noExport)'.
First column is correctly missing, but the class noExport is now applied to the Surname column.
This question has an accepted answers - jump to answer
Answers
Use the 1.5.4 version of the print button to address that: http://live.datatables.net/mamepafu/3/edit . It was indeed a bug in previous versions.
Allan