View as Markdown

API reference: @salmonui/data-grid/engine

FilterOperatortype

import type { FilterOperator } from '@salmonui/data-grid/engine';
type FilterOperator = 'equal' | 'notEqual' | 'contains' | 'doesNotContain' | 'startsWith' | 'doesNotStartWith' | 'endsWith' | 'doesNotEndWith' | 'isEmpty' | 'isNotEmpty' | 'isNull' | 'isNotNull' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'between' | 'in' | 'notIn' | 'like' | 'wildcard';

Built-in filter operators. like treats % and * as "any sequence"; wildcard treats * as "any sequence" and ? as "one character". Both match the whole value. Lowercase names (startswith, doesnotcontain, greaterthanorequal, ...) are accepted by the filter commands and normalized to these names.