new SearchBoxView()
- Source:
Extends
- Backbone.View
Members
events
- Source:
list of events for Backbone View
Methods
closeDropdown()
- Source:
Closes typeahead drop down
createOffsetObject()
- Source:
Creates object that contain signatures
initialize()
- Source:
Initializes typeahead for view, sets up watchers for change on model
and call "initSearchEngine"
loading()
- Source:
Toggle css class "loading-in-progress"
performSearch(query)
- Source:
Makes search
Parameters:
Name | Type | Description |
---|---|---|
query |
String | value from search box |
predictiveSearch(event)
- Source:
Calls "performSearch"
by pressing Enter key
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | Event object |
suggestionSelected(event, data)
- Source:
Called when selected value from search box and call
"performSearch" or re
Parameters:
Name | Type | Description |
---|---|---|
event |
jQuery.<Event> | jQuery event object |
data |
DomElement | DOM element that was selected |
updateQueryModel(query)
- Source:
Updates hash based on searchValue
Parameters:
Name | Type | Description |
---|---|---|
query |
String | jQuery event object |
updateQueryModelClick(event)
- Source:
Takes search box value as a query value and calls
"updateQueryModel"
Parameters:
Name | Type | Description |
---|---|---|
event |
jQuery.<Event> | jQuery event object |
updateQueryWithRedirect(event)
- Source:
Updates hash value and makes redirect based on value from search box
Parameters:
Name | Type | Description |
---|---|---|
event |
jQuery.<Event> | jQuery event object |
updateSearchBoxValue()
- Source:
Sets value into search box based on hash