Abstract
Protected
bindOptional
configOptional instance-level configuration to override the global configuration
Protected
Optional
contentThe data bound to the Handlebars template.
Optional
dataThe data bound to the component.
Protected
handlebarsThe Handlebars reference shared by all HawkSearch components.
Protected
configurationThe optional configuration object for this component.
The root element which should be used for querying any child elements. This resolves to this.shadowRoot
if the Shadow DOM is enabled, otherwise this
.
Protected
bindProtected
interpolateReplaces placeholders in a given string with values from a data object.
The template string.
The object containing properties which will be bound to template
.
The template
string with all placeholders replaced by the values specified in values
.
Protected
onProtected
registerOptional method that can be overwritten to register Handlebars helper functions which can be accessed from the template. For more information, see Custom Helpers.
Binds contentModel to the Handlebars template and renders the resulting HTML content.
Protected
renderDetermines whether the data meets the necessary conditions to perform data binding and render content.
Whether the component should be rendered. If false
, the component will have empty contents and be set to display: none;
.
Protected
trigger
The Base Facet component is inherited by all facet type copmonents.
Event-Binding Attributes
The following attributes are common to all facet type components. Individual facet types may support additional attribute bindings.
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.
string
When an element with this attribute is clicked, search results with the corresponding attribute value will be excluded from search results.
string
When an element with this attribute is clicked, search results with the corresponding attribute value will no longer be excluded from search results.
Note: Elements with this attribute value should only be displayed for facet values that are excluded.
When an element with this attribute is clicked, child facet values will be displayed or hidden as appropriate.
Note: This attribute should only be used for facets that support nested values.