UNPKG

@mui/x-data-grid

Version:

The Community plan edition of the Data Grid components (MUI X).

11 lines (10 loc) 796 B
import { RefObject } from '@mui/x-internals/types'; import { DataGridProcessedProps } from '../../../models/props/DataGridProps'; import { GridPrivateApiCommunity } from '../../../models/api/gridApiCommunity'; import { GridStateInitializer } from '../../utils/useGridInitializeState'; export declare const sortingStateInitializer: GridStateInitializer<Pick<DataGridProcessedProps, 'sortModel' | 'initialState' | 'disableMultipleColumnsSorting'>>; /** * @requires useGridRows (event) * @requires useGridColumns (event) */ export declare const useGridSorting: (apiRef: RefObject<GridPrivateApiCommunity>, props: Pick<DataGridProcessedProps, "initialState" | "sortModel" | "onSortModelChange" | "sortingOrder" | "sortingMode" | "disableColumnSorting" | "disableMultipleColumnsSorting">) => void;