Constructor
new DCOfferAttributeConfig()
Example
Sample Usage -
Include the component in your template simply by adding vlocity-dc-offer-attribute-config custom tag
<c-dc-offer-attribute-config attribute-values={attribute}></c-dc-offer-attribute-config>
| Attribute Name | Type Expected | Required |
|-------------------|---------------------------------------------------------------------------------|----------|
| attributeValues | It expects value in OfferAttributeObject format | required |
--------------------------------------------------------------------------------------------------------------------------------------
KEY INFO -
events fired :
| Event Name | Description |
|--------------------------------------------|-------------------------------------------------|
| vlocity-dc-configure-offer-attributes | Event triggered when Addon button is clicked |
events registered : none
Sample with slots -
<c-dc-offer-attribute-config>
<span slot="{slot_name}">
Custom HTML elements goes here
</span>
</c-dc-offer-attribute-config>
List of available slots -
| Slot names | Dynamic | Description | Impact |
|------------------------------------|-------------|------------------------------------------------------------------|
| dc-offer-attribute-wrapper | - | Wrapper for component | Will replace complete template DOM |
Extends
Methods
(static) connectedCallback()
Invoked when vlocity-dc-offer-attribute-config component is added to the document’s DOM.
(static) getSDKInstance()
This function gets digital commerce sdk instance
(static) selectOfferAttribute()
This function is called on change of selected offer attributes.
Properties:
Name | Type | Description |
---|---|---|
event |
eventObject | capture from Dom. |