Protected
bindProtected
componentProtected
Optional
contentThe data bound to the Handlebars template.
Optional
dataThe data bound to the component.
Protected
defaultProtected
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
.
Static
observedProtected
bindProtected
getProtected
interpolateReplaces placeholders in a given string with values from a data object.
The template
string with all placeholders replaced by the values specified in values
.
The template string.
The object containing properties which will be bound to template
.
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;
.
The Range Slider component provides a draggable interface that allows the user to select a range between 0-100. This component is currently only used within the Range Slider Facet Component.
Tag
The tag for this component is
<hawksearch-range-slider>
.Event-Binding Attributes
'start'
or'end'
This component should always have exactly two elements with the
hawksearch-handle
attribute: one with a value of'start'
, and one with a value of'end'
. This are the elements that the user will drag to adjust the selected range.Events
This event fires repeatedly while the user is dragging the handles; it does not wait until the user deselects a handle.
Note: The
min
andmax
values will always be between0
and100
inclusive.Default Template
The following is the default Handlebars template for this component. To create a custom template, it is recommended to use this as a starting point. {@embed ./range-slider.component.hbs}