@jsvision/datagrid / NavGrid
Interface: NavGrid
Defined in: datagrid/src/navigation.ts:103
The grid capabilities installGridNavigation drives. Deliberately structural and row-type-free (the four members carry no row type), so an EditableDataGrid of any row type satisfies it and grids of different row types — e.g. a master and its detail — can be passed together.
Properties
rows
readonlyrows:View
Defined in: datagrid/src/navigation.ts:113
The focusable body view (re-focused after a 'moved' result).
Methods
isBodyFocused()
isBodyFocused():
boolean
Defined in: datagrid/src/navigation.ts:105
Whether this grid's body currently holds focus.
Returns
boolean
isEditing()
isEditing():
boolean
Defined in: datagrid/src/navigation.ts:107
Whether an in-cell editor is open on this grid (focus is then on the editor, not the body).
Returns
boolean
nextCell()
nextCell():
Promise<"moved"|"exit">
Defined in: datagrid/src/navigation.ts:109
Advance the cursor by one cell (commit-then-advance while editing); 'exit' at the grid edge.
Returns
Promise<"moved" | "exit">
prevCell()
prevCell():
Promise<"moved"|"exit">
Defined in: datagrid/src/navigation.ts:111
Retreat the cursor by one cell; 'exit' at the grid start.
Returns
Promise<"moved" | "exit">