
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.