TableExport icon indicating copy to clipboard operation
TableExport copied to clipboard

Ignore Cols using variable

Open soapej opened this issue 7 years ago • 1 comments

I'm trying to ignore a column with a variable that holds the index of the column, but it doesn't seem to work. Is this possible?

ex:

$('target').tableExport({ ignoreCols: count1 });

soapej avatar Feb 15 '18 17:02 soapej

@soapej – All else equal, the syntax you presented should work fine, as long as the variable holds the value of the column you want to ignore when tableExport is initialized. Here is the ignoreCols example from the docs to reiterate the appropriate syntax.

Note: If you need to modify the ignored columns at runtime (i.e. reparse the table when the variable changes) you can achieve that with the update() method. Here is the documentation for update.

clarketm avatar Feb 20 '18 22:02 clarketm