Class: SorterView

SorterView()

A view that displays a sort controller and sets the sort order on the attached SolrResults collection.

Screenshot

Constructor

new SorterView()

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:

searchResults :SolrResults

A reference to the SolrResults collection that this sorter displays and controls.
Type:
Source:

tagName :string

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

Methods

hide()

Hides the view
Since:
  • 2.25.0
Source:

hideIfNoResults()

Hides the view if there are no search results.
Since:
  • 2.25.0
Source:

render()

Renders the view
Source:

setSort(e)

Sets the sort order on the SolrResults when the sort is changed in the UI.
Parameters:
Name Type Description
e Event
Source:

show()

Shows the view
Since:
  • 2.25.0
Source: