A plugin that performs built-in grouping and group expanding/collapsing.
Use the following statement to import the plugin:
import { IntegratedGrouping } from '@devexpress/dx-react-grid';
Name | Type | Default | Description |
---|---|---|---|
columnExtensions? | Array<IntegratedGrouping.ColumnExtension> | Additional column properties that the plugin can handle. |
Describes additional column properties that the plugin can handle.
Field | Type | Description |
---|---|---|
columnName | string | The name of a column to extend. |
criteria? | (value: any) => { key: string | number, value?: any } | A grouping criterion function. It returns an object with the key field by which data is grouped. If you need to group data by a non-primitive value (for example, a date), assign its string representation to the key field and the value to the value field. |
Name | Plugin | Type | Description |
---|---|---|---|
rows | Getter | Array<any> | Rows to be grouped. |
grouping | Getter | Array<Grouping> | The current grouping state. |
expandedGroups | Getter | Array<GroupKey> | Groups to be expanded. |
getCellValue | Getter | (row: any, columnName: string) => any | A function that returns a cell value. |
Name | Plugin | Type | Description |
---|---|---|---|
rows | Getter | Array<any> | Rows with the applied grouping and expanded groups. |
isGroupRow | Getter | (row: any) => boolean | A function that returns a value defining if the row is a group row. |
getRowLevelKey | Getter | (row: any) => string? | A function that returns a group level key for the row. |
getCollapsedRows | Getter | (row: any) => Array<any>? | A function used to get collapsed rows associated with the given row. |