Interface: StorageService
Description
Interface to implement to define a storage service to save and load grid state.
Methods
getGridStateAsync()
getGridStateAsync(): Promise<undefined | GridState>
Returns
Promise
<undefined
| GridState
>
A Promise that returns the saved grid state or undefined if no grid state is saved.
Description
Retrieves the saved grid state. This is called once when the data grid component is mounted.
setGridStateAsync()
setGridStateAsync(gridState): Promise<void>
Parameters
Parameter | Type | Description |
---|---|---|
gridState | GridState | The grid state to save |
Returns
Promise
<void
>
A Promise that returns when the grid state has been saved.
Description
Saves a new version of the grid state. This called every time data in the grid state changes.