UNPKG

@mui/x-data-grid

Version:

The community edition of the data grid component (MUI X).

35 lines (34 loc) 1.1 kB
import { GridFilterItem, GridLogicOperator } from './gridFilterItem'; /** * Model describing the filters to apply to the grid. * @demos * - [Pass filters to the grid](/x/react-data-grid/filtering/#pass-filters-to-the-data-grid) */ export interface GridFilterModel { /** * @default [] */ items: GridFilterItem[]; /** * - `GridLogicOperator.And`: the row must pass all the filter items. * - `GridLogicOperator.Or`: the row must pass at least on filter item. * @default `GridLogicOperator.Or` */ logicOperator?: GridLogicOperator; /** * values used to quick filter rows * @default `[]` */ quickFilterValues?: any[]; /** * - `GridLogicOperator.And`: the row must pass all the values. * - `GridLogicOperator.Or`: the row must pass at least one value. * @default `GridLogicOperator.And` */ quickFilterLogicOperator?: GridLogicOperator; /** * If `true`, the quick filter will skip cell values from hidden columns. * @default false */ quickFilterExcludeHiddenColumns?: boolean; }