Skip to content

FilterChip

Overview

Renders a single active filter as a removable pill. The label segment shows the field name and its current value and opens the field's edit form in a popover; the trailing segment removes the filter. The chip resolves choice values to their human labels via useModelChoices, and turns destructive when the server rejected the value.

Theme entry: FilterChip

Props

NameTypeRequiredDefaultDescription
iconOverrideObjectnullA partial icon registry ({ [componentName]: { [iconName]: { component, props } } }) merged with inherited and default icon entries; scopes icon overrides to this component and its descendants.
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
filterobjectyesThe active filter entry to render: { field, value, range, param }.
filterDetailsobjectyesFilter configuration for this field (label, choices, typeFilter, lookupExprs, suffixes).
queryobject{}Current URL query, forwarded to the edit form so it seeds from the active value.
erroredbooleanfalseWhen true, the server rejected this filter's value; the chip renders destructive.

Slots

slot

Scoped slot.

Bindings

NameDescription
name

Events

hide-filter-form

Source

client/lib/form/filter/FilterChip.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2