Constructor
new DCOfferListViewAttribute()
Properties:
Name | Type | Description |
---|---|---|
offerAttributes |
OfferAttributeObject | indicates an object which contains a list of the all the offer attributes. |
Example
Sample Usage -
Include the component in your template simply by adding c-dc-offer-list-view-attribute custom tag
<c-dc-offer-list-view-attribute offer-attributes={atttributes}></c-dc-offer-list-view-attribute>
| Attribute Name | Type Expected | Required |
|---------------------|---------------------------------------------------------------------------------|----------|
| offerAttributes | An object which contains a list of the all the offer attributes. | Required |
KEY INFO -
events fired : "none"
events registered : "none"
Dependency - c-dc-offer-list-view-attribute is a component used for rendering all the offer attributes in offer list.
It is commonly used as a child component for c-dc-offer-list-view and c-dc-offer-grid-view, but can also be
used as an independent component
| Parent Component | Expected Child Component |
|------------------------------|------------------------------------------|
| c-dc-offer-list-view | none |
| c-dc-offer-grid-view | |
Sample with slots -
<c-dc-offer-list-view-attribute>
<span slot="{slot_name}">
Custom HTML elements goes here
</span>
</c-dc-offer-list-view-attribute>
List of available slots -
| Slot names | Dynamic | Description | Impact |
|---------------------------------|-------------|------------------------------|----------------------|
| dc-list-view-attribute-wrapper | - | Wrapper for template | Replaces DOM |
| dc-offer-list-radio-attribute | - | Wrapper for radio attribute | Replaces DOM |
| dc-offer-list-config-attribute | - | wrapper for config attribute | Replaces DOM |
Extends
Methods
(static) getTranslationLabels()
Method to get digital commerce translations.