A plugin that manages the expanded state for table row details.
Use the following statement to import the plugin:
import { RowDetailState } from '@devexpress/dx-react-grid';
none
Name | Type | Default | Description |
---|---|---|---|
expandedRowIds? | Array<number | string> | IDs of the rows being expanded. | |
defaultExpandedRowIds? | Array<number | string> | [] | IDs of the rows initially expanded in the uncontrolled mode. |
onExpandedRowIdsChange? | (expandedRowIds: Array<number | string>) => void | Handles expanded rows changes. |
none
Name | Plugin | Type | Description |
---|---|---|---|
toggleDetailRowExpanded | Action | ({ rowId: number | string, state?: boolean }) => void | Expands/collapses the specified row. The state argument specifies whether the rows should be selected (true), deselected (false), or their selection status should be set to the opposite value (undefined). |
expandedDetailRowIds | Getter | Array<number | string> | Currently expanded rows. |