Trigger template (cart)

Description

Define a Handlebars template used to display content of trigger.

Data passed to template are:

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

Default value

itemTrigger: {
  template: '{{>icon-block}} {{>label-block}}'
}

Examples

Display only label

itemTrigger: {
  template: '<li class="dropdown">{{>label-block}}</li>'
}