← API Index · How to use components

filter component #oo-filter

Offers global filtering of the items shown by the shop and search components.

Features:

Labels used by too few items, and groups hidden in the shop's setup, are shown to administrators only.

How components are mounted, how switch values are resolved and how debug output is enabled is described in the use-js-components skill.

<div id="oo-navi" data-oo-shop-page="shop.html"></div>
<div id="oo-path"></div>
<div id="oo-filter"></div>
<div id="oo-shop"></div>

component switches

This component has no switches of its own.

Events

Element Event Description
#oo-filter oo-filter-changed Fired with the list of active filters whenever the selection changes. Shop and search re-render on it; your own script may listen too.

debug options

Debug scope filter (enable with data-oo-debug="true" on the element or debug:filter:all+, see the skill):

Term Description
filter:all Groups and labels rendered, checkbox changes, stored / restored selection.

Design tips