Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / StateStoringConfig

Interface: StateStoringConfig

Defined in: datagrid-core/dist/index.d.ts:5830

Properties

customLoad?

optional customLoad?: () => GridViewState | Promise<GridViewState | null> | null

Defined in: datagrid-core/dist/index.d.ts:5839

custom only. May be async — the grid applies whatever resolves.

Returns

GridViewState | Promise<GridViewState | null> | null


customSave?

optional customSave?: (state) => void | Promise<void>

Defined in: datagrid-core/dist/index.d.ts:5840

Parameters

state

GridViewState

Returns

void | Promise<void>


enabled?

optional enabled?: boolean

Defined in: datagrid-core/dist/index.d.ts:5831


saveDelay?

optional saveDelay?: number

Defined in: datagrid-core/dist/index.d.ts:5837

Milliseconds of quiet before writing. Default 500.


storageKey?

optional storageKey?: string

Defined in: datagrid-core/dist/index.d.ts:5835

Storage key. Defaults to kanuni-datagrid-<gridId>.


type?

optional type?: "custom" | "localStorage" | "sessionStorage"

Defined in: datagrid-core/dist/index.d.ts:5833

Where to keep it. custom uses customLoad/customSave.