UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

57 lines (56 loc) 2.67 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { GridFilterOperator } from './GridFilterOperator.js'; /** * The filter operators for the Grid filters. * * @example * ```jsx-no-run * // Default Grid filter operators: * const filterOperators: { * 'text': [ * { text: 'grid.filterContainsOperator', operator: 'contains' }, * { text: 'grid.filterNotContainsOperator', operator: 'doesnotcontain' }, * { text: 'grid.filterEqOperator', operator: 'eq' }, * { text: 'grid.filterNotEqOperator', operator: 'neq' }, * { text: 'grid.filterStartsWithOperator', operator: 'startswith' }, * { text: 'grid.filterEndsWithOperator', operator: 'endswith' }, * { text: 'grid.filterIsNullOperator', operator: 'isnull' }, * { text: 'grid.filterIsNotNullOperator', operator: 'isnotnull' }, * { text: 'grid.filterIsEmptyOperator', operator: 'isempty' }, * { text: 'grid.filterIsNotEmptyOperator', operator: 'isnotempty' } * ], * 'numeric': [ * { text: 'grid.filterEqOperator', operator: 'eq' }, * { text: 'grid.filterNotEqOperator', operator: 'neq' }, * { text: 'grid.filterGteOperator', operator: 'gte' }, * { text: 'grid.filterGtOperator', operator: 'gt' }, * { text: 'grid.filterLteOperator', operator: 'lte' }, * { text: 'grid.filterLtOperator', operator: 'lt' }, * { text: 'grid.filterIsNullOperator', operator: 'isnull' }, * { text: 'grid.filterIsNotNullOperator', operator: 'isnotnull' } * ], * 'date': [ * { text: 'grid.filterEqOperator', operator: 'eq' }, * { text: 'grid.filterNotEqOperator', operator: 'neq' }, * { text: 'grid.filterAfterOrEqualOperator', operator: 'gte' }, * { text: 'grid.filterAfterOperator', operator: 'gt' }, * { text: 'grid.filterBeforeOperator', operator: 'lt' }, * { text: 'grid.filterBeforeOrEqualOperator', operator: 'lte' }, * { text: 'grid.filterIsNullOperator', operator: 'isnull' }, * { text: 'grid.filterIsNotNullOperator', operator: 'isnotnull' } * ], * 'boolean': [ * { text: 'grid.filterEqOperator', operator: 'eq' } * ] * } * ``` */ export interface GridFilterOperators { [type: string]: GridFilterOperator[]; }