Arrow Table
Navigate HTML tables with arrow keys.
Usage
;
Examples
Enabling only certain keys
;
beforeMove
Using You can use this callback to decide whether to allow the move or not. If you return false
the plugin will stop 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.
;
See all possible options below.
Options
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. |
API
destroy
;
Destroy the plugin instance