@jsvision/ui / DataGridOptions
Interface: DataGridOptions<T>
Defined in: ui/src/table/data-grid.ts:26
Construction options for DataGrid.
Type Parameters
T
T
Properties
columns
readonlycolumns:Column<T>[]
Defined in: ui/src/table/data-grid.ts:30
The heterogeneous columns (title + accessor + sizing + optional align/compare/min-max).
command?
readonlyoptionalcommand?:string
Defined in: ui/src/table/data-grid.ts:42
Command name emitted on Enter/Space activation, handled elsewhere (menu/status/app handler).
focused?
readonlyoptionalfocused?:Signal<number>
Defined in: ui/src/table/data-grid.ts:32
The focused (highlighted) POSITIONAL display index (default an internal signal at 0).
indent?
readonlyoptionalindent?:Signal<number>
Defined in: ui/src/table/data-grid.ts:38
The horizontal cell offset (default an internal signal at 0; shared with the horizontal bar).
onSelect?
readonlyoptionalonSelect?: (index,row) =>void
Defined in: ui/src/table/data-grid.ts:40
Activation callback (Enter/Space or double-click); index is the display-order row, row the value.
Parameters
index
number
row
T
Returns
void
rows
readonlyrows:Signal<T[]>
Defined in: ui/src/table/data-grid.ts:28
The source rows (source order; the grid sorts the display only).
selected?
readonlyoptionalselected?:Signal<number>
Defined in: ui/src/table/data-grid.ts:34
The selected (chosen) display index (default an internal signal at -1).
sort?
Defined in: ui/src/table/data-grid.ts:36
The active sort (default an internal signal at null = source order).
zebra?
readonlyoptionalzebra?:boolean
Defined in: ui/src/table/data-grid.ts:44
Stripe odd rows for readability (below focus/selection in priority; default false).