1.0.5 • Published 8 years ago
fixed-thead v1.0.5
fixed-thead
fixed-thead is a simple library that fix the thead when window is scrolled.
Installation
- npm:
npm install --save fixed-thead
How to use
// basis
var fixedThead = new FixedThead('table');
// option
fixedThead = new FixedThead('table', {
offsetLeft: 0, // px only(default is 0)
offsetTop: 50, // px only(default is 0)
enabled: false // boolean(default is true)
zIndex: 1234 // integer(default is 9999)
});
// property
fixedThead.enabled = false; // true or false