Constructor
new SearchResultsView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
events :Object
The events this view will listen to and the associated function to call.
Type:
- Source:
noResultsTemplate :string
The HTML to display when no search results are found.
Type:
- Since:
- Source:
The SolrResults collection that fetches and parses the searches.
Type:
- Source:
tagName :string
The HTML tag to use for this view's element
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
addResultCollection()
- Source:
addResultModel(searchResult)
Renders the given
SolrResult model inside this view.
Parameters:
- Source:
addResultView(view)
Adds a Search Result View to the page
Parameters:
| Name |
Type |
Description |
view |
SearchResultView
|
|
- Source:
createSearchResultView()
Creates a Search Result View
- Source:
loading()
Renders a skeleton of this view that communicates to the user that it is loading.
- Source:
setSearchResults() → {SolrResults}
- Source:
Returns:
-
Type
-
SolrResults
showNoResults()
Shows a message when no search results have been found.
- Source:
startListening()
- Source: