Skip to content

GridFilterItem API

Filter item definition interface.

Demos

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

field

The column from which we want to filter the rows.

Type:string


operator

The name of the operator we want to apply.

Type:string


idOptional

Must be unique.
Only useful when the model contains several items.

Type:number | string


valueOptional

The filtering value.
The operator filtering function will decide for each row if the row values is correct compared to this value.

Type:any