FacetSummaryModel

facetSummary. FacetSummaryModel

new FacetSummaryModel()

Source:

Extends

  • Backbone.Model

Members

defaults

Source:
Default Value:
  • {
      "dataProperties": "",
      "sig": "",
      "hash": ""
    }
Default model options

Methods

(static) processData(data)

Source:
Processes data that comes as parameter. Update model and store all facets that are active and have same signature
Parameters:
Name Type Description
data Object Data from server with facet values

(static) requestFacetData(facetData, controlData) → {Array}

Source:
Finds all facets that have same name as facetName in Control Data and return them
Parameters:
Name Type Description
facetData Object
controlData *
Returns:
Filtered facet data
Type
Array

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

translateSignatures(rawSignature, f)

Source:
Concatenates signature and facet name in order to build proper hash parameter name
Parameters:
Name Type Description
rawSignature *
f *