@servicensw/responsive-table

1.0.0 • Public • Published

@servicensw/responsive-table

Service NSW package documentation and examples
(Login credentials required)

Installation

npm install @servicensw/responsive-table --save-dev

How to use

CSS

  • PostCSS workflow: @import '@servicensw/responsive-table';
  • Sass/Eyeglass: @import 'servicensw-responsive-table';
  • Native CSS: @import url('dist/responsive-table.css');
  • Link tag: <link href="dist/responsive-table.css" rel="stylesheet" type="text/css">

JavaScript

import ResponsiveTable from "@servicensw/responsive-table"

new ResponsiveTable("table:has(tbody th):not(.table--not-responsive)")

Legacy usage;

  • IIFE: <script src="dist/responsive-table.js" type="text/javascript"></script> (initialized for all table:has(tbody th):not(.table--not-responsive) elements)
  • Common JS: const ResponsiveTable = require("@servicensw/responsive-table") (initialize yourself)

Readme

Keywords

none

Package Sidebar

Install

npm i @servicensw/responsive-table

Weekly Downloads

31

Version

1.0.0

License

MIT

Unpacked Size

21.3 kB

Total Files

13

Last publish

Collaborators

  • larowlan
  • rikki_iki
  • acbramley
  • erinsnsw
  • dojob65
  • ramya.shankaralingam
  • mariam.khoudier
  • christine.roque
  • previousnext-admin
  • mcaddz
  • jptaranto