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

TableState

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

Properties

NameTypeDescription
columns
ColumnState[]

Column structure state

criteria
TableCriteria[] | undefined

State from PanemuTableController.criteria.

groupByColumns
GroupBy[] | undefined

State from PanemuTableController.groupByColumns.

maxRows
number

State of pagination max rows

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

Sorting state

startIndex
number

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.