@mui/x-data-grid
Version:
The Community plan edition of the MUI X Data Grid components.
9 lines • 650 B
TypeScript
import type { RefObject } from '@mui/x-internals/types';
import type { GridFilterModel } from "../../../models/gridFilterModel.js";
import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
/**
* Tracks the filter model as the data source sees it, the parts that cannot apply excluded.
* Returns a predicate telling whether a new model would ask for something else: editing an
* incomplete item, or flipping a logic operator that has nothing to combine, is a no-op.
*/
export declare const useGridDataSourceFilterModelChange: (apiRef: RefObject<GridPrivateApiCommunity>) => (filterModel: GridFilterModel) => boolean;