table-fixed-scroll
v1.0.1
Published
Plugin to make table headers pinned to top after they were scrolled.
Downloads
3
Maintainers
Readme
table-fixed-scroll
About
JavaScript plugin table-fixed-scroll allow you to make table headers adapt. Table headers will be pinned to top after they were scrolled.
How to use it
Step 1
Install plugin:
npm install table-fixed-scroll
Step 2
Load plugin into your JavaScript code by one of two methods:
Method 1. Using import
import * as tableFixedScroll from 'table-fixed-scroll'
Method 2. Using require
const tableFixedScroll = require('table-fixed-scroll');
Step 3
Initialize plugin in your JavaScript code:
tableFixedScroll.init();
Step 4
Add class table-fixed-scroll to table that you want to be with adapt header:
<table class="table-fixed-scroll">
<thead>...</thead>
<tbody>...</tbody>
</table>