Class: LocalStorageService

Description

Storage service that saves grid state in localStorageopen in new window.

Implements

Properties

PropertyType
keystring

Constructors

new LocalStorageService(key)

new LocalStorageService(key): LocalStorageService

Parameters

ParameterType
keystring

Returns

LocalStorageService

Methods

getGridStateAsync()

getGridStateAsync(): Promise<undefined | GridState>

Returns

Promiseopen in new window<undefined | GridState>

A Promise that returns the saved grid state or undefined if no grid state is saved.

Implementation of

StorageService.getGridStateAsync

Description

Retrieves the saved grid state. This is called once when the data grid component is mounted.


setGridStateAsync()

setGridStateAsync(gridState): Promise<void>

Parameters

ParameterTypeDescription
gridStateGridStateThe grid state to save

Returns

Promiseopen in new window<void>

A Promise that returns when the grid state has been saved.

Implementation of

StorageService.setGridStateAsync

Description

Saves a new version of the grid state. This called every time data in the grid state changes.