Skip to content

πŸ–‡ Wraps html tables column-wise for mobile layouts. πŸ–‡

Notifications You must be signed in to change notification settings

vielhuber/tablewrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–‡ tablewrap πŸ–‡

tablewrap is a small javascript helper that wraps your html tables on small viewports column-wise.

demo

features

  • no modification of existing css styles needed
  • no extra markup needed
  • performant and lightweight
  • comes as an es6 module
  • cross-browser-support (ie11)
  • support for preserving the first column

installation

npm install tablewrap

usage

import Tablewrap from 'tablewrap';

document.addEventListener('DOMContentLoaded', () => {
    let tablewrap = new Tablewrap({
        selector: 'table',
        breakpoint: 700,
        preserveFirstCol: true
    });

    tablewrap.destroy();
});

About

πŸ–‡ Wraps html tables column-wise for mobile layouts. πŸ–‡

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published