/
Facet Type Components

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

string (if applicable)

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

string

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

string

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.

Related content

Facet Configuration: Best Practices
Facet Configuration: Best Practices
Read with this
Facet Wrapper Component
Facet Wrapper Component
More like this
Selected Facets Component
Selected Facets Component
More like this
Checkbox List Facet Component
Checkbox List Facet Component
More like this
Search Within Facet Component
Search Within Facet Component
More like this
Facets List Component
Facets List Component
More like this