Constructors
Section titled "Constructors"IgxGridStateDirective
new IgxGridStateDirective(): IgxGridStateDirective Returns IgxGridStateDirective
Properties
Section titled "Properties"Inherited from: IgxGridStateBaseDirective
grid: GridType Defined in projects/igniteui-angular/grids/core/src/state-base.directive.ts:114
stateParsed
Section titled "stateParsed"Event emitted when set state is called with a string. Returns the parsed state object so that it can be further modified before applying to the grid.
this.state.stateParsed.subscribe(parsedState => parsedState.sorting.forEach(x => x.strategy = NoopSortingStrategy.instance()}); stateParsed: EventEmitter<IGridState> Defined in projects/igniteui-angular/grids/core/src/state.directive.ts:78
options
Section titled "options"options: IGridStateOptions Defined in projects/igniteui-angular/grids/core/src/state.directive.ts:21, projects/igniteui-angular/grids/core/src/state.directive.ts:25
Methods
Section titled "Methods"getState
Section titled "getState"Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the options property.
getState(serialize: boolean, features: keyof IGridStateOptions | keyof IGridStateOptions[]): string | IGridState Defined in projects/igniteui-angular/grids/core/src/state.directive.ts:44
Parameters
- serialize:
boolean - features:
keyof IGridStateOptions | keyof IGridStateOptions[]
Returns string | IGridState
setState
Section titled "setState"Restores grid features' state based on the IGridState object passed as an argument.
setState(state: string | IGridState, features: keyof IGridStateOptions | keyof IGridStateOptions[]): void Defined in projects/igniteui-angular/grids/core/src/state.directive.ts:62
Parameters
- state:
string | IGridState - features:
keyof IGridStateOptions | keyof IGridStateOptions[]