Getting Started
Usages
Columns
API References
ngx-panemu-table / Interface

TableState

States of table that can be saved and restored. The TableOptions.saveState.key must be uniquely defined to enable persisting states.

Properties

NameTypeDescription
columns
ColumnState[] | undefined

Column structure: width, stickiness, visibility and position

criteria
TableCriteria[] | undefined

State from PanemuTableController.criteria.

groupByColumns
GroupBy[] | undefined

State from PanemuTableController.groupByColumns.

maxRows
number | undefined

State of pagination max rows

sorting
{ [key: string]: "asc" | "desc"; } | undefined

Sorting state

startIndex
number | undefined

State of pagination start index.

structureKey
string

Generated key to ensure the column structure doesn't change. It is concatenated BaseColumn.__key of the columns. If a column is added or removed, or children of ColumnType.GROUP column is changed, the generated structureKey will be different thus saved state is ignored.