@mui/x-data-grid
Version:
The Community plan edition of the MUI X Data Grid components.
14 lines • 535 B
TypeScript
import type { GridRowId, GridTreeNode } from "../../../models/gridRows.js";
import type { GridSortModel } from "../../../models/gridSortModel.js";
export interface GridSortingState {
sortedRows: GridRowId[];
sortModel: GridSortModel;
}
export interface GridSortingInitialState {
sortModel?: GridSortModel;
}
export type GridSortingModelApplier = (rowList: GridTreeNode[]) => GridRowId[];
export interface GridSortingMethodParams {
sortRowList: GridSortingModelApplier | null;
}
export type GridSortingMethodValue = GridRowId[];