UNPKG

@mui/x-data-grid

Version:

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

17 lines (16 loc) 449 B
import { GridFilterInputBoolean } from '../components/panel/filterPanel/GridFilterInputBoolean'; export const getGridBooleanOperators = () => [{ value: 'is', getApplyFilterFn: filterItem => { if (!filterItem.value) { return null; } const valueAsBoolean = filterItem.value === 'true'; return ({ value }) => { return Boolean(value) === valueAsBoolean; }; }, InputComponent: GridFilterInputBoolean }];