new FacetManagedRangeView()
Extends
- Backbone.View
Members
events
list of events for Backbone View
Methods
(static) filter()
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()
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)
Clears values for manualRangeMin and manualRangeMax elements
Parameters:
Name | Type | Description |
---|---|---|
param |
Event | Event that contains currentTarget element |
clearFilter()
Updates component
clearFilter()
Updates hash on checkbox or radio button changes
clearFilter()
Clears selected filter and updates hash
configureKeyCodes(e)
On enter click calls
"filter" method
Parameters:
Name | Type | Description |
---|---|---|
e |
Event | Event object |
linkClick(param)
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)
Updates Hash base on selected element by calling
"updateHash"
Parameters:
Name | Type | Description |
---|---|---|
param |
Event | Event that contains currentTarget element |
render()
Render view
updateHash(foundRangeControls)
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 |