Skip to Content
Which part for what

Filters

FilterBar and QueryBuilder.

FilterBar

FilterBar is one row that wraps.

  1. search comes first and grows, from 220 to 420px.
  2. Segmented Tabs, Selects and Switches follow at their width.
  3. end sits at the right, for a count or Clear.

The name of a filter is inside the control, as its value or its aria-label. It is never a caption above it. On a phone the filters scroll sideways under the search field.

Search, segments, a select and a switch
Open the example ↗

QueryBuilder

QueryBuilder filters over the fields of a list, inside the FilterBar.

  • Each rule is a 30px chip, such as "State is Open" or "Estimate > 3", that opens a popover.
  • "Filter" adds a rule.
  • The button with the sliders opens the builder, which groups rules with AND or OR.
  • Fields are typed by a schema, QueryField.
  • toWhere and fromWhere convert to and from the where of the store.
  • On a phone it is one sheet of grouped rows.
Chips in a filter barA chip per rule opens a popover to edit it; Filter adds one, the sliders button opens the grouped builder and its text form. Arrow keys move between chips, Delete removes one. Assignee uses a picker of its own (renderPicker). Below, the store's where it maps to.
Open the example ↗
Filters as chips in the barOnly the filters in use take room, each says what it does, and the rest is one Filter button away.
Open the example ↗
A form of every filterA captioned field for every possible filter, most of them empty, takes rows above the list and still cannot say “or”.
Open the example ↗

See Query builder for the query model and its text form.

Edit on GitHub

Last updated on

On this page