/
Search Field Component
Search Field Component
Overview
The Search component contains a text input element which triggers the Autocomplete component as the user types and executes a new search when the user hits the enter
key.
Selector
The selector for this component is <hawksearch-search-field>
.
Data Model
The SearchResponse object is made available to the Handlebars template:
Event Binding Attributes
Attribute Name | Attribute Value |
---|---|
hawksearch-input |
|
Input elements with this attribute will trigger Autocomplete functionality when the user types and executes a new search when the user hits the enter
key.
Default Template
<div class="search-field">
<input type="text" hawksearch-input value="{{query}}" placeholder="Enter keywords" />
<hawksearch-autocomplete></hawksearch-autocomplete>
</div>
, multiple selections available,
Related content
Autocomplete Component
Autocomplete Component
More like this
Search Within Facet Component
Search Within Facet Component
More like this
Search Results Component
Search Results Component
More like this
Query Suggestions Component
Query Suggestions Component
More like this
Search Results List Component
Search Results List Component
More like this
Recent Searches Facet Component
Recent Searches Facet Component
More like this