@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
30 lines • 730 B
TypeScript
/**
* Filter item definition interface.
* @demos
* - [Custom filter operator](/x/react-data-grid/filtering/customization/#create-a-custom-operator)
*/
export interface GridFilterItem {
/**
* Must be unique.
* Only useful when the model contains several items.
*/
id?: number | string;
/**
* The column from which we want to filter the rows.
*/
field: string;
/**
* The filtering value.
* The operator filtering function will decide for each row if the row values is correct compared to this value.
*/
value?: any;
/**
* The name of the operator we want to apply.
*/
operator: string;
}
declare enum GridLogicOperator {
And = "and",
Or = "or",
}
export { GridLogicOperator };