FacetDropdownModel

dropdown. FacetDropdownModel

new FacetDropdownModel()

Source:

Extends

  • Backbone.Model

Members

defaults

Source:
Default Value:
  • {
      "template": "",
      "dataProperties": "",
      "blockNextRequest": false,
      "resultData": "",
      "optionSelected": false,
      "sig": ""
    }
Default model options

Methods

initialize()

Source:
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)

Source:
Processes data that comes as parameter update model and sorts facets
Parameters:
Name Type Description
data Object Data from server with facet values

toggleBlockRequests()

Source:
Toggle value of blockNextRequest variable

updateComponent(hash)

Source:
Sets option selected value to model based on hash
Parameters:
Name Type Description
hash Object Hash stored as an object