WarUI

Text filter operators

GRID-A10-F02P0baselinePlanned

Defines the text filter type and its operators: contains, notContains, equals, notEquals, startsWith and endsWith. Users choose an operator from a compact menu next to the input. Explicit operators avoid the ambiguity of an implicit 'contains' search.

Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A people grid (name, email, city). The Email column has a text filter whose operator is 'contains'.

Expected behavior

Changing the operator re-evaluates the current value immediately. Restricting operators removes the excluded ones from the menu. The JSON viewer always shows the active {type, operator, value}.

Planned API surface

columnDefs[].filterType='text'filterParams.operatorsfilterParams.defaultOperatorfilterModel.operatorfilterModel.value

Acceptance criteria

  • Each of the 6 operators produces the correct row set against a documented fixture. (pending)
  • notContains and notEquals exclude rows whose value matches and keep rows whose value is blank, unless 'Blank semantics' (F05) is configured otherwise. (pending)
  • When filterParams.operators lists only certain operators, the menu shows only those. (pending)
  • An empty value deactivates the filter regardless of operator. (pending)
  • The filter model reflects the operator and value exactly. (pending)