Trigger template (cart)
Description
Define a Handlebars template used to display content of trigger.
Data passed to template are:
-
icon
- content of itemTrigger.iconAdd (if item can be added to cart) or itemTrigger.iconDelete (if item can be removed from cart) prepended with icon prefix -
label
- content of itemTrigger.labelAdd (if item can be added to cart) or itemTrigger.labelDelete (if item can be removed from cart)
Widget contains predefined Handlebars partial templates that can be used:
-
{{>icon-block}}
- display{{icon}}
from data model passed to template -
{{>label-block}}
- display{{label}}
from data model passed to template