tablewrap
v1.1.4
Published
[](https://github.com/vielhuber/tablewrap/actions) [](https://github.com/vielhuber/tablewrap/ta
Readme
🖇 tablewrap 🖇
tablewrap is a small javascript helper that wraps your html tables on small viewports column-wise.

features
- no modification of existing css styles needed
- no extra markup needed
- performant and lightweight
- comes as an es6 module
- cross-browser-support
- support for preserving the first column
installation
npm install tablewrapusage
import Tablewrap from 'tablewrap';
document.addEventListener('DOMContentLoaded', () => {
let tablewrap = new Tablewrap({
selector: 'table',
breakpoint: 700,
preserveFirstCol: true
});
tablewrap.destroy();
});