Keyboard Navigation Extension
Read details about the Keyboard navigation extension in the article Keyboard Navigation.
The keyboardNavigation object possesses the following API:
Methods
-
focus (config): void - allows selecting any cell in the grid. Works only if the Grid already has the focus
- config - (object) - the config object
- id - (number | string) - the id of an edited task
- column - (string) - the column name
- type - (string) - type of the scope. Possible values: "gantt", "taskRow", "taskCell", "headerCell"
- config - (object) - the config object
gantt.ext.keyboardNavigation.focus({type:"taskCell",id:"taskId",column:"columnName"});
Related sample Selecting a grid cell
- getActiveNode (): boolean | void - allows obtaining information about the active cell
var active_node = gantt.ext.keyboardNavigation.getActiveNode();
// -> {type: "taskCell", id: "10", column: "text"}
Related sample Getting the active cell