Skip to content

@jsvision/ui / GridRowsConfig

Interface: GridRowsConfig<T>

Defined in: ui/src/table/grid-rows.ts:54

Shared configuration handed from a DataGrid to its GridRows.

Type Parameters

T

T

Properties

autoWidths

autoWidths: () => (number | null)[]

Defined in: ui/src/table/grid-rows.ts:60

The memoized auto-width measurement (a computed over the source rows).

Returns

(number | null)[]


columns

columns: Column<T>[]

Defined in: ui/src/table/grid-rows.ts:58

The heterogeneous columns.


command?

optional command?: string

Defined in: ui/src/table/grid-rows.ts:72

Command name emitted on activation, handled elsewhere.


display

display: () => T[]

Defined in: ui/src/table/grid-rows.ts:56

The sorted display rows (a computed in DataGrid; focused/selected index THIS list).

Returns

T[]


focused

focused: Signal<number>

Defined in: ui/src/table/grid-rows.ts:64

The focused (highlighted) display index (shared with the vertical scroll bar's value).


indent

indent: Signal<number>

Defined in: ui/src/table/grid-rows.ts:62

The horizontal cell offset (shared with the owned horizontal scroll bar's value).


onSelect?

optional onSelect?: (index, row) => void

Defined in: ui/src/table/grid-rows.ts:70

Activation callback (Enter/Space or double-click); index is display order, row the value.

Parameters

index

number

row

T

Returns

void


selected

selected: Signal<number>

Defined in: ui/src/table/grid-rows.ts:66

The selected (chosen) display index (-1 = none).


zebra

zebra: boolean

Defined in: ui/src/table/grid-rows.ts:68

Stripe odd rows for readability (below focus/selection in priority).