Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jquery-sticky-table-header
Advanced tools
A small and accessible jQuery plugin for adding sticky headers to large data tables.
A small and accessible jQuery plugin for adding sticky headers to large data tables.
https://codepen.io/simonsmith/full/yoQyKa/
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.
Clone the repository and run npm install && npm run build
. This will generate
a UMD version of the plugin in ./build
that can be dropped into a project
however you want.
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="jquery.stickyTableHeader.js"></script>
There are a couple of 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();
outsideViewportOnly - (boolean) Only run the plugin if the table is
larger than the viewport default true
scrollThrottle - (number) Maximum number of times the scroll handler
can be called over time in milliseconds default 50
zIndex - (number) Added to the header to control stacking default 2
css (object) Classes applied to the HTML structure
StickyTableHeader
is-scrolling
npm install
npm start
Access the demo at http://localhost:3001/example
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 140 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.