GridAIState
Represents the grid state that can be controlled externally. This interface contains all the stateful properties that can be modified through AI commands.
const [gridState, setGridState] = useState<GridAIState>({
sort: [],
filter: undefined,
group: [],
columnsState: initialColumns,
skip: 0,
take: 20
});
| Name | Type | Default | Description |
|---|---|---|---|
columnsState? |
|
The current column state including visibility, width, order, and lock status. Array of column state objects. | |
filter? |
|
The current filter descriptor applied to the grid. Composite filter defining logic and filter array. | |
group? |
|
The current group descriptors applied to the grid. Array of group objects defining field and aggregates. | |
highlight? |
|
The highlight descriptor for highlighting cells/rows in the grid. Object with dataItemKey as keys, values can be boolean (whole row) or number array (specific cells). tsx
| |
select? |
|
The select descriptor for selecting cells/rows in the grid. Object with dataItemKey as keys, values can be boolean (whole row) or number array (specific cells). tsx
| |
skip? |
|
The number of items to skip for pagination. Zero-based index for the first item to display. | |
sort? |
|
The current sort descriptors applied to the grid. Array of sort objects defining field and direction. | |
take? |
|
The number of items to take (page size) for pagination. Number of items to display per page. |