responsive-table component
npm install @servicensw/responsive-tableService NSW package documentation and examples
(Login credentials required)
```
npm install @servicensw/responsive-table --save-dev
CSS
- PostCSS workflow: @import '@servicensw/responsive-table';@import 'servicensw-responsive-table';
- Sass/Eyeglass: @import url('dist/responsive-table.css');
- Native CSS:
- Link tag:
JavaScript
`js
import ResponsiveTable from "@servicensw/responsive-table"
new ResponsiveTable("table:has(tbody th):not(.table--not-responsive)")
`
Legacy usage;
- IIFE: (initialized for all table:has(tbody th):not(.table--not-responsive) elements)const ResponsiveTable = require("@servicensw/responsive-table")` (initialize yourself)
- Common JS: