Morel
Spring, edible.
This page demonstrates multiple independent GenericElementFilter
instances with lots of edge cases: cards, table rows,
matchMode="contains", reset(), hooks,
auto-inferred root and bindAll() + data-*
configuration.
Spring, edible.
Summer, edible.
Autumn, toxic.
Autumn, edible.
Season: winter (not in select), edible. Should only ever
disappear when other filters exclude it.
Has data-season="spring" but no
data-edible.
Has data-edible="no" but no data-season.
data-tag with multiple tokens and
matchMode="contains".
Tags: forest, meadow
Tags: meadow (with extra whitespace)
Tags: water, forest (comma separated)
Empty data-tag → should only be visible for "All tags".
data-country / data-size,
rows missing attributes and values not present in the selects.
| City | Country | Size |
|---|---|---|
| Berlin | DE | big |
| Weimar | DE | small |
| Graz | AT | small |
| Vienna | AT | big |
| Leipzig | DE | medium (not in size select) |
| Innsbruck | AT | (no data-size) |
Category: gear · Availability: in stock
Category: book · Availability: in stock
Category: gear · Availability: out of stock
Category: gear · no data-availability.
onBeforeFilter, onAfterFilter and
refreshElements() after adding cards.
Habitat: forest
Habitat: meadow
Habitat: swamp (not in select, should only be filtered by other criteria).
elementsSelector and
filtersSelector.
Type: info
Type: warning
Type: info, no status and no explicit no-results element.