OmbraDiFenice/table2csv

How to exclude columns?

Closed this issue · 2 comments

I tried using a Jquery selector like "th:contains('blah')" (blah being the value of the header) and it indeed filters the column, but screws up the rest of the CSV because the columns and their values are misaligned.

Should all cells in the column to be excluded have a class or something like that?

Ok, I answered my own questions. All ths and tds to be excluded should have the same class.
It's not enough to select the header.

Hello, it was better if you had told the exact solution.
The solution is
excludeColumns : '.class-name'
and this class name should be in "th" as well as in all the "td" columns.