Represents a class implementing the IGridGroupingStrategy interface and extending the sorting class. It provides a method to group data based on the given grouping state.
Constructors
Section titled "Constructors"IgxGrouping
new IgxGrouping(): IgxGrouping Returns IgxGrouping
Methods
Section titled "Methods"groupBy
Section titled "groupBy"Groups the provided data based on the given grouping state. Returns an object containing the result of the grouping operation.
groupBy(data: any[], state: IGroupingState, grid: any, groupsRecords: any[], fullResult: IGroupByResult): IGroupByResult Defined in projects/igniteui-angular/core/src/data-operations/grid-sorting-strategy.ts:170
Parameters
- data:
any[] - state:
IGroupingState - grid:
any - groupsRecords:
any[] - fullResult:
IGroupByResult
Returns IGroupByResult
Inherited from: IgxSorting
Sorts the provided data based on the given sorting expressions.
data: The array of data to be sorted.
expressions: An array of sorting expressions that define the sorting rules. The expression contains information like file name, whether the letter case should be taken into account, etc.
grid: (Optional) The instance of the grid where the sorting is applied.
Returns a new array with the data sorted according to the sorting expressions.
sort(data: any[], expressions: ISortingExpression<any>[], grid: GridTypeBase): any[] Defined in projects/igniteui-angular/core/src/data-operations/grid-sorting-strategy.ts:90
Parameters
- data:
any[] - expressions:
ISortingExpression<any>[] - grid:
GridTypeBase