@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
17 lines • 785 B
TypeScript
import { GridRowTreeConfig } from '@mui/x-data-grid';
import { GridRowTreeCreationValue } from '@mui/x-data-grid/internals';
import { RowTreeBuilderNode, GridTreePathDuplicateHandler } from "./models.js";
import { DataGridProProps } from "../../models/dataGridProProps.js";
interface CreateRowTreeParams {
previousTree: GridRowTreeConfig | null;
nodes: RowTreeBuilderNode[];
defaultGroupingExpansionDepth: number;
isGroupExpandedByDefault?: DataGridProProps['isGroupExpandedByDefault'];
groupingName: string;
onDuplicatePath?: GridTreePathDuplicateHandler;
}
/**
* Transform a list of rows into a tree structure where each row references its parent and children.
*/
export declare const createRowTree: (params: CreateRowTreeParams) => GridRowTreeCreationValue;
export {};