API reference
@salmonui/data-grid/engine/persistence
26 exported symbols: 8 functions, 8 interfaces, 7 types and 3 constants. Each name links its page with the signature, docs and members. Names re-exported from another entry point are listed there, linked below.
import { … } from '@salmonui/data-grid/engine/persistence';Functions
bindDataGridPersistenceNot for apps (use createDataGridPersistence): createDataGridPersistence over injected state API functions (DATA_GRID_PERSISTENCE_FNS).createDataGridPersistenceBinds an engine to an injected storage: applied state-changing commands schedule one coalesced save; load() restores.createDataGridStateApiBuilds the state methods of a grid instance. Lives on the ./persistence.js subpath (not in createDataGridApi) so the root entry does not carry the persistence…deserializeDataGridStateInverse of serializeDataGridState; also accepts plain JSON. Throws on malformed input or an unsupported version.getDataGridStateReads the persistable state. Parts of unregistered modules are omitted.normalizeDataGridStateValidates and normalizes a state. Throws on a non-object or an unsupported version unless migrate upgrades it. Invalid entries are dropped.restoreDataGridStateRestores a state in one batch, through commands: columns, sorting, filters, search, grouping, paging, pinned rows, then selection (query changes may clear a se…serializeDataGridStateDeterministic (sorted keys), URL-safe (base64url of UTF-8 JSON) form of a state.
Interfaces
DataGridPersistenceFnsNot for apps: the state API functions the storage binding uses (bindDataGridPersistence, persistence-binder.ts).
Constants
DATA_GRID_PERSISTENCE_FNSNot for apps: passed to bindDataGridPersistence by createDataGridPersistence and by renderers that load the binding lazily.DATA_GRID_STATE_PARTSDATA_GRID_STATE_VERSION
Re-exported entry points
@salmonui/data-grid/engine14 symbols: 7 interfaces and 7 types