Sample Usage -
Include the component in your template simply by adding vlocity-dc-offer-color-config custom tag
<vlocity-dc-offer-color-config .offerAttribute="${offerAttributes}"></vlocity-dc-offer-color-config>
| Attribute Name | Type Expected | Required |
|-------------------|---------------------------------------------------------------------------------|----------|
| offerAttribute | It expects value in OfferAttributeObject format | required |
--------------------------------------------------------------------------------------------------------------------------------------
KEY INFO -
events fired :
| Event Name | Description |
|----------------------------------|-------------------------------------------------|
| vlocity-dc-color-selected | Event triggered when a color option is selected |
| vlocity-dc-configure-offer | Event triggered when Addon button is clicked |
events registered : none
Dependency - vlocity-dc-offer-color-config is a component that is commonly used as a child of vlocity-dc-offer-config-details component but it can also be used as an independent component.
| Parent Component | Expected Child Component |
|-----------------------------------|---------------------------|
| vlocity-dc-offer-config-details | none |
Sample with slots -
<vlocity-dc-offer-color-config>
<span slot="{slot_name}">
Custom HTML elements goes here
</span>
</vlocity-dc-offer-color-config>
List of available slots -
| Slot names | Dynamic | Description | Impact |
|-------------------------------|-------------|----------------------------------------------------|
| dc-offer-color-config-wrapper | - | Wrapper for template | Replaces DOM |
Extends
LitElement
Members
(static, readonly) properties
Properties that will be available in the binding system