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.
arrow-table
Advanced tools
Navigate HTML tables with arrow keys.
$('#my-table').arrowTable();
$('#my-table').arrowTable({
enabledKeys: ['up', 'down']
});
beforeMove
You can use this callback to decide whether to allow the move or not. If you return false
the plugin will stop the move.
$('#my-table').arrowTable({
focusTarget: 'input, textarea',
beforeMove: function(input, targetFinder, direction) {
// Determine the target
var target = targetFinder();
if (direction === 'up' && $(target).is('textarea'))
{
// Don't allow move
return false;
}
// Return nothing to allow the move
}
});
It's even possible to modify the table in the beforeMove
callback adding a row and the plugin will find the newly added row.
$('#my-table').arrowTable({
beforeMove: function(input, targetFinder, direction) {
if (direction === 'down')
{
$(input).closest('table').find('tbody').append('<tr><td><input type="text"/></td></tr>');
}
}
});
See all possible options below.
Option | Default | Description |
---|---|---|
enabledKeys | ['left', 'right', 'up', 'down'] | Enabled keys |
listenTarget | 'input' | Target to listen for key move events |
focusTarget | 'input' | Target to focus after move |
continuousDelay | 50 | Delay in ms before moving onto next cell when holding arrow keys down |
beforeMove | $.noop | Before moving callback. Return false to stop move |
afterMove | $.noop | After moving complete callback. |
$('#my-table').arrowTable('destroy');
Destroy the plugin instance
FAQs
Navigate HTML tables with arrow keys.
The npm package arrow-table receives a total of 2 weekly downloads. As such, arrow-table popularity was classified as not popular.
We found that arrow-table 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.