new FacetDropdownModel()
Extends
- Backbone.Model
Members
defaults
- Source:
- Default Value:
{ "template": "", "dataProperties": "", "blockNextRequest": false, "resultData": "", "optionSelected": false, "sig": "" }
Default model options
Methods
initialize()
Listens to changes on facets and hash
Listens to Events:
- module:XA.component.search.vent~event:facet-data-loaded
- module:XA.component.search.vent~event:facet-data-filtered
- module:XA.component.search.vent~event:facet-data-partial-filtered
- module:XA.component.search.vent~event:hashChanged
processData(data)
Processes data that comes as parameter update
model and sorts facets
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Data from server with facet values |
toggleBlockRequests()
Toggle value of blockNextRequest variable
updateComponent(hash)
Sets option selected value to model based on hash
Parameters:
Name | Type | Description |
---|---|---|
hash |
Object | Hash stored as an object |