Lightweight <1kb(minified) JavaScript library to hide/unhide html table columns
Demo: https://tomaskikutis.github.io/html-table-column-hider/
$ npm install --save html-table-column-hider
var HtmlTableColumnHider = require('html-table-column-hider');
var uniqueTableSelector = '#elements-table-1';
var hider = new TableColumnHider(uniqueTableSelector);
hider.hideColumns([0,1,2]);
hider.unhideColumns([1]);
Takes array of integers representing one-based column indexes
Takes array of integers representing one-based column indexes
.getHiddenColumns()
Returns array of integers representing one-based column indexes
Removes attached style element from document head
MIT © Tomas Kikutis