Remember the checked rows (by getRowId). Since 1.1.92 (before: declared without effect).
Remember expanded and collapsed nodes of a tree table (by getRowId).
1.1.92
1.1.92
1.1.97
1.1.92
Remember the scroll position (and the id of the first visible row).
Remember the selection: rows by getRowId, columns by property. Restored in the current row order. Since 1.1.92 (before: declared without effect).
Remember the sorted columns (by property).
A unique, stable id per row (tree: per node). With the default of AutoRestoreOptions the table uses the
property id, then uuid; rows without them are not stored (since 1.1.92 – the JSON of the row would write
personal data into the storage; the table warns once).
Default: the property id, then uuid, then the JSON of the row. The table itself uses only id / uuid of
this default (since 1.1.92): rows without them are not stored – the JSON would write whole rows into the storage.
The storage key of this table, e.g. () => "orders". Without it nothing is stored.
since 1.1.92 – never used by the table.
Defaults for TableOptionsIf.autoRestoreOptions: everything off. Spread it and switch on what the table should remember in
localStorage(one key per table) – see AutoRestoreOptionsIf for all flags.Example
Example
See
Training: Remember the state