State component allows saving and restoring the state of the grid features.

options: IgrGridStateOptions

Restores grid features' state based on the IGridStateInfo object passed as an argument.

applyState(state: IgrGridStateInfo, features: string[]): void

Parameters

Returns void

Restores grid features' state based on the serialized IGridState object passed as an argument.

applyStateFromString(state: string, features: string[]): void

Parameters

  • state: string

    string to restore state from.

  • features: string[]

Returns void

Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the options property.

getState(features: string[]): IgrGridStateInfo

Parameters

  • features: string[]

Returns IgrGridStateInfo

Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the options property.

getStateAsString(features: string[]): string

Parameters

  • features: string[]

Returns string

onStateParsed(args: CustomEvent<IgrGridStateInfo>): void

Parameters

Returns void