Sample Usage -
Include the component in your template simply by adding vlocity-dc-promotion-list custom tag
<vlocity-dc-promotion-list offerCode="${cartItem.productCode}" catalogCode="${shoppingCartComponent.catalogCode}" .appliedPromotions="${cartItem.promotions}"></vlocity-dc-promotion-list>
| Attribute Name | Type Expected | Required |
|--------------------------|-------------------------------------------------------------------------------------|----------|
| offerCode | It expects offer code value. | required |
| catalogCode | It expects catalog code value. | required |
| appliedPromotions | It expects list of all the applied promotions | optional |
--------------------------------------------------------------------------------------------------------------------------------------
KEY INFO -
events fired : vlocity-dc-promo-list-updated
| Event Name | Description |
|--------------------------------------|---------------------------------------------------------------|
|vlocity-dc-promo-list-updated | Event fired on change of available promotions list |
events registered : none
Dependency - vlocity-dc-promotion-list is an independent component and has no dependency on parent component.
| Parent Component | Expected Child Component |
|------------------|---------------------------|
| none | none |
Sample with slots -
<vlocity-dc-promotion-list>
<span slot="{slot_name}">
Custom HTML elements goes here
</span>
</vlocity-dc-promotion-list>
List of available slots -
| Slot names | Dynamic | Description | Impact |
|---------------------------------------|-------------|----------------------------------------------------|
| dc-promotion-list-wrapper | - | Wrapper for template | Replaces DOM |
| dc-promotion-content-wrapper | - | Wrapper for content | Replaces DOM |
Extends
LitElement
Members
(static, readonly) properties
Properties that will be available in the binding system