I’m trying to implement a custom widget. Basically what I need is a normal refinementList with an extra item which resets the facet value.
For example the list shows
colors and I need an
all colors item, which works like if you had removed all
However I cannot figure out how should I use the
refine function; the documentation is very vague about it.
- How should I call
refineto clear all selected facet values?
- Is it sufficient to call
refinewhen clicking on an item with the facet value to be set? (e.g
It would be nice if the documentation would be more clear about these.