@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
14 lines • 545 B
TypeScript
import { GridKeyValue, GridRowId } from '@mui/x-data-grid';
export interface RowTreeBuilderGroupingCriterion {
field: string | null;
key: GridKeyValue | null;
}
export interface RowTreeBuilderNode {
id: GridRowId;
path: RowTreeBuilderGroupingCriterion[];
serverChildrenCount?: number;
}
/**
* Callback called when trying to insert a data row in the tree in place of an already existing data row.
*/
export type GridTreePathDuplicateHandler = (firstId: GridRowId, secondId: GridRowId, path: RowTreeBuilderGroupingCriterion[]) => void;