FacetManagedRangeView

managedrange. FacetManagedRangeView

new FacetManagedRangeView()

Source:

Extends

  • Backbone.View

Members

events

Source:
list of events for Backbone View

Methods

(static) filter()

Source:
If minRange or maxRange value set "queryModel updateHash" method If checked CheckBox or RadioButton called "managedrange updateHash" If multiply selection disabled call "radioClick"

(static) initialize()

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

checkBoxClick(param)

Source:
Clears values for manualRangeMin and manualRangeMax elements
Parameters:
Name Type Description
param Event Event that contains currentTarget element

clearFilter()

Source:
Updates component

clearFilter()

Source:
Updates hash on checkbox or radio button changes

clearFilter()

Source:
Clears selected filter and updates hash

configureKeyCodes(e)

Source:
On enter click calls "filter" method
Parameters:
Name Type Description
e Event Event object

linkClick(param)

Source:
Manages checked status for facetCheckbox Clears values for manualRangeMin and manualRangeMax elements and updates hash value
Parameters:
Name Type Description
param Event Event that contains currentTarget element

radioClick(param)

Source:
Updates Hash base on selected element by calling "updateHash"
Parameters:
Name Type Description
param Event Event that contains currentTarget element

render()

Source:
Render view

updateHash(foundRangeControls)

Source:
Helper function that will take all ranges selected on a page and update hash parameters according to this value
Parameters:
Name Type Description
foundRangeControls Array.<DomElement> List of range controls on a page