Class: SearchResultsView

SearchResultsView()

SearchResultsView

Constructor

new SearchResultsView()

Since:
  • 2.22.0
Source:

Extends

  • Backbone.View

Members

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

events :Object

The events this view will listen to and the associated function to call.
Type:
  • Object
Source:

noResultsTemplate :string

The HTML to display when no search results are found.
Type:
  • string
Since:
  • 2.22.0
Source:

searchResults :SolrResults

The SolrResults collection that fetches and parses the searches.
Type:
Source:

tagName :string

The HTML tag to use for this view's element
Type:
  • string
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

addResultCollection()

Renders all SolrResults from the SearchResultsView#searchResults collection.
Source:

addResultModel(searchResult)

Renders the given SolrResult model inside this view.
Parameters:
Name Type Description
searchResult SolrResult
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}

Creates and sets the SearchResultsView#searchResults property.
Source:
Returns:
Type
SolrResults

showNoResults()

Shows a message when no search results have been found.
Source:

startListening()

Sets listeners on the SearchResultsView#searchResults to change what is displayed in this view.
Source: