Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
form
: a selector pointing to the formfilters
: a selector pointing to the filtersitems
: a selector pointing to the itemsInitializer function.
Add aria attributes
Attach evenets to the widget
Filter the items
convert the serialized parameters to a usable filtering object
Trigger an event before doing the acutal filtering
Do the actual filtering
Update the url according to the current filters
Toggle corresponding items
Trigger an event after doing the acutal filtering
Clear the filter
Find the widget structure using the specified configuration
Find the filtering form, specified in one of the following ways:
form
option, specified as a selectorFind the filters, specified in one of the following ways:
data-role="filter"
filters
option, specified as a selectorFind the filter items, specified in one of the following ways:
data-role="filter"
items
option, specified as a selectordata-filter-*
attributeCleanup the widget and remove remaining references
Install the widget into the JS library
Filter
The
Filter
class provides a simple filtering widget.author: Julien Ramboz version: 1.0 usage: Filter examples