Skip to content

GridFilterItem Interface

Filter item definition interface.

Import

import { GridFilterItem } from '@mui/x-data-grid-premium';
// or
import { GridFilterItem } from '@mui/x-data-grid-pro';
// or
import { GridFilterItem } from '@mui/x-data-grid';

Properties

Name Type Description
field string The column from which we want to filter the rows.
id? number | string Must be unique.
Only useful when the model contains several items.
operator string The name of the operator we want to apply.
value? any The filtering value.
The operator filtering function will decide for each row if the row values is correct compared to this value.