@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
21 lines (20 loc) • 638 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getGridBooleanOperators = void 0;
var _GridFilterInputBoolean = require("../components/panel/filterPanel/GridFilterInputBoolean");
const getGridBooleanOperators = () => [{
value: 'is',
getApplyFilterFn: filterItem => {
if (!filterItem.value) {
return null;
}
const valueAsBoolean = String(filterItem.value) === 'true';
return value => {
return Boolean(value) === valueAsBoolean;
};
},
InputComponent: _GridFilterInputBoolean.GridFilterInputBoolean
}];
exports.getGridBooleanOperators = getGridBooleanOperators;
;