SortView

searchSort. SortView

new SortView()

Source:

Extends

  • Backbone.View

Members

events

Source:
list of events for Backbone View

Methods

initialize()

Source:
Initially sets data to model and watches events on which view should be updated
Listens to Events:
  • module:XA.component.search.vent~event:hashChanged

sortSearchResults(element)

Source:
Updates hash with sorting value
Parameters:
Name Type Description
element DomElement Element that contains data that is needed for sorting
Source:
prevents default event and calls 'sortSearchResults' method
Parameters:
Name Type Description
event Event

sortSearchResultsSelect(event)

Source:
call 'sortSearchResults' method
Parameters:
Name Type Description
event Event

updateComponent(hash)

Source:
Updates component selected value according to hash value
Parameters:
Name Type Description
hash Object Hash value stores as an object