Class: SearchResultsPagerView

SearchResultsPagerView()

SearchResultsPagerView

Constructor

new SearchResultsPagerView()

Renders a simple pager element for a SolrResults collection.
Since:
  • 2.22.0
Source:

Extends

  • Backbone.View

Members

events :object

An object literal of events to listen to on this view
Type:
  • object
Source:

searchResults :SolrResults

A SolrResults collection that contains the page data that this Pager displays.
Type:
Source:

Methods

linkTemplate(data) → {string}

Constructs and returns the HTML template string for a single page link in the pager
Parameters:
Name Type Description
data object
Source:
Returns:
Type
string

render()

Renders the Pager View
Source:

renderPages()

Render the page numbers and links.
Source:

url(page) → {string}

Constructs and returns a URL string to use for the given page in this pager. It assumes that the URL uses a ".../page/X" structure. To provide a custom URL, override this function.
Parameters:
Name Type Description
page number | string
Source:
Returns:
Type
string