@kanunilabs/datagrid-react / StateStoringConfig
Interface: StateStoringConfig
Properties
customLoad?
optionalcustomLoad?: () =>GridViewState|Promise<GridViewState|null> |null
custom only. May be async — the grid applies whatever resolves.
Returns
GridViewState | Promise<GridViewState | null> | null
customSave?
optionalcustomSave?: (state) =>void|Promise<void>
Parameters
state
Returns
void | Promise<void>
enabled?
optionalenabled?:boolean
saveDelay?
optionalsaveDelay?:number
Milliseconds of quiet before writing. Default 500.
storageKey?
optionalstorageKey?:string
Storage key. Defaults to kanuni-datagrid-<gridId>.
type?
optionaltype?:"custom"|"localStorage"|"sessionStorage"
Where to keep it. custom uses customLoad/customSave.