VariantSelectorView

variantFilter. VariantSelectorView

new VariantSelectorView()

Source:

Extends

  • Backbone.View

Members

events

Source:
list of events for Backbone View

Methods

changeVariant(EVent)

Source:
Changes variant of search result view
Parameters:
Name Type Description
EVent Event object with selected variant as a current Target
Listens to Events:
  • module:XA.component.search.vent~event:results-loaded

initialize()

Source:
Initially sets data to model and watches events on which view should be updated
Listens to Events:
  • module:XA.component.search.vent~event:results-loaded

selectVariantIcon(v)

Source:
Manages active-variant class for variant icons
Parameters:
Name Type Description
v String data variant index of selected element
Fires:
  • module:XA.component.search.vent~event:add-variant-class

triggerAddVariant(classes, signature)

Source:
Changes variant of search result view
Parameters:
Name Type Description
classes String css class of chosen variant
signature String component signature
Fires:
  • module:XA.component.search.vent~event:add-variant-class