Class IgxGridStateDirective

Hierarchy

Hierarchy

  • IgxGridStateDirective

Properties

Accessors

Methods

Properties

grid: GridType
stateParsed: EventEmitter<IGridState> = ...

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()});

Accessors

Methods

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

    Returns

    Returns the serialized to JSON string IGridState object, or the non-serialized IGridState object.

    <igx-grid [igxGridState]="options"></igx-grid>
    
    @ViewChild(IgxGridStateDirective, { static: true }) public state;
    let state = this.state.getState(); // returns string
    let state = this.state(false) // returns `IGridState` object

    Parameters

    Returns string | IGridState