Facet Type Components
Event Binding Attributes
The following attributes are common to all Facet Type Components. Individual facet types may support additional attribute bindings.
Attribute Name | Attribute Value |
---|---|
hawksearch-facet-value |
|
When a checkbox input element with this attribute is checked or unchecked, the value of that element will be added or removed from the search request as appropriate.
For non-input elements, the attribute value will be used instead of a form element value.
Attribute Name | Attribute Value |
---|---|
hawksearch-facet-value-exclude |
|
When an element with this attribute is clicked, search results with the corresponding attribute value will be excluded from search results.
Attribute Name | Attribute Value |
---|---|
hawksearch-facet-value-include |
|
When an element with this attribute is clicked, search results with the corresponding attribute value will no longer be excluded from search results.
Elements with this attribute value should only be displayed for facet values that are excluded.
Attribute Name | Attribute Value |
---|---|
hawksearch-facet-value-toggle | Â |
When an element with this attribute is clicked, child facet values will be displayed or hidden as appropriate.
This attribute should only be used for facets that support nested values.
Attribute Name | Attribute Value |
---|---|
hawksearch-facet-toggle | Â |
When an element with this attribute is clicked, facet values beyond the toggle threshold will be displayed or hidden as appropriate.