Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / StateStoringConfig

Interface: StateStoringConfig

Properties

customLoad?

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

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

Returns

GridViewState | Promise<GridViewState | null> | null


customSave?

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

Parameters

state

GridViewState

Returns

void | Promise<void>


enabled?

optional enabled?: boolean


saveDelay?

optional saveDelay?: number

Milliseconds of quiet before writing. Default 500.


storageKey?

optional storageKey?: string

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


type?

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

Where to keep it. custom uses customLoad/customSave.