new VariantSelectorView()
Extends
- Backbone.View
Members
events
list of events for Backbone View
Methods
changeVariant(EVent)
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()
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)
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)
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