Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
jquery-sticky-table-header
Advanced tools
A small (2.4kb gzipped) and accessible jQuery plugin for adding sticky headers to large data tables.
A small (2.4kb gzipped) and accessible jQuery plugin for adding sticky headers to large data tables.
https://simonsmith.github.io/jquery.stickyTableHeader/test/
position: fixed
that allows smooth scrolling and a wide range of browser
supportIt's recommended to require
/import
the plugin as part of an existing webpack
or browserify setup:
npm install jquery jquery-sticky-table-header --save
// index.js
const $ = require('jquery');
require('jquery-sticky-table-header');
$('.table-container').stickyTableHeader();
Relies on jQuery as a peerDependency
so ensure it is installed in your
application.
yarn && yarn run build
or npm install && npm run build
./build
directory.Example
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="jquery.stickyTableHeader.js"></script>
There are some HTML requirements for the plugin to function correctly:
thead
elementtbody
element<div class="table-container">
<table>
<thead>
<!-- content -->
</thead>
<tbody>
<!-- content -->
</tbody>
</table>
</div>
$('.table-container').stickyTableHeader();
It's recommended that you apply a background colour to the header to mask the real table header beneath it.
true
50
2
0
0
StickyTableHeader
is-scrolling
is-stickyTableHeaderActive
You can get at the instance by accessing it from the elements .data
method
$('.table-container').stickyTableHeader();
const instance = $('.table-container').data('stickyTableHeader');
instance.destroy();
Removes the sticky header element and scroll listener
yarn is required or you can use npm
to run the
individual scripts yourself
yarn
yarn start
Run the tests with yarn test
and view the demo at http://localhost:3002/test
FAQs
A small (2.4kb gzipped) and accessible jQuery plugin for adding sticky headers to large data tables.
The npm package jquery-sticky-table-header receives a total of 209 weekly downloads. As such, jquery-sticky-table-header popularity was classified as not popular.
We found that jquery-sticky-table-header demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.