Interface: TableState<Row>
Defined in: packages/sdvtables/src/engine.ts:33
The whole user-controlled state of a table: sort, filters, page, hidden columns, and the J31 link fields. Immutable; every mutation replaces it.
Type Parameters
Row
Row
Properties
cursor
readonlycursor:TableCursor
Defined in: packages/sdvtables/src/engine.ts:48
Task 10: the keyboard cursor; its row is kept on the current page
externalFilter
readonlyexternalFilter:RowFilter<Row> |null
Defined in: packages/sdvtables/src/engine.ts:44
J31: set by setExternalFilter; ANDed with the column and global filters
filters
readonlyfilters:Readonly<Record<string,FilterValue<Row>>>
Defined in: packages/sdvtables/src/engine.ts:35
globalFilter
readonlyglobalFilter:string
Defined in: packages/sdvtables/src/engine.ts:36
hidden
readonlyhidden: readonlystring[]
Defined in: packages/sdvtables/src/engine.ts:42
column keys hidden by toggleColumn
page
readonlypage:number
Defined in: packages/sdvtables/src/engine.ts:38
0-based
pageSize
readonlypageSize:number
Defined in: packages/sdvtables/src/engine.ts:40
positive integer, or Infinity for "all rows"
selection
readonlyselection:ReadonlySet<string>
Defined in: packages/sdvtables/src/engine.ts:46
J31: row ids (see rowId); NOT pruned to the rows present, so a linked store's ids round-trip intact
sort
readonlysort:Sort|null
Defined in: packages/sdvtables/src/engine.ts:34