<ws-filter-chip> component displays the currently applied filters in the frontend. It is updated automatically as soon as filters are added or removed. Clicking one of the displayed filters removes it again.
Requirement
- The component is used in combination with
<ws-filter>. - If no filters are defined, there are no active filters to display or remove.
Component
The component can be embedded as follows on the category and search result page:Optional attribute neq-label
Via the neq-label attribute you can control how negative filters (i.e. filters with negate) are displayed. For a negative filter, the value is displayed with a 🚫 symbol, e.g. 🚫 blue.
If a different prefix is desired or the symbol should be suppressed entirely, the neq-label attribute can be adjusted accordingly:
not blue instead of 🚫 blue.
Optional attribute btn-class
The btn-class attribute controls which class is assigned to the generated button.
CSS & styling
This component generates the following CSS classes for styling:chip-container: Container for the whole list of applied filters.chip: Individual applied filter.closebtn: Button that removes the filter. (Only when no individual class is provided viabtn-class.)
