DCOfferListViewPrice

DCOfferListViewPrice

c-dc-offer-list-view-price is a component used for rendering offer prices in offer list.

Constructor

new DCOfferListViewPrice()

Properties:
Name Type Description
priceInfo PriceInfoObject indicates an object which contains a list of the all the prices.
gridView String indicates whether current view is gridview or listview
Example
Sample Usage -

Include the component in your template simply by adding c-dc-offer-list-view-price custom tag

<c-dc-offer-list-view-price price-info={priceObject} display-view="grid/list">
</c-dc-offer-list-view-price>

| Attribute Name      | Type Expected                                                                   | Required |
|---------------------|---------------------------------------------------------------------------------|----------|
| priceInfo           | An object which contains a list of the all the prices                           | Required |
| gridView            | A string which indicates whether current view is gridview or listview           | Required |

 KEY INFO -

 events fired : "none"

 events registered : "none"

 Dependency - c-dc-offer-list-view-price is a component used for rendering offer prices in offer list.
 It is commonly used as a child component for c-dc-offer-list-view and c-dc-offer-grid-view but it 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-image>
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</c-dc-offer-list-view-image>

List of available slots -

| Slot names                      | Dynamic     | Description                  | Impact               |
|---------------------------------|-------------|------------------------------|----------------------|
| dc-list-view-price-wrapper      | -           | Wrapper for template         | Replaces DOM         |

Extends

Members

(static, readonly) getPriceWrapperClass

Properties that will be available in the template binding
Properties:
Name Type Description
priceInfo Object indicates an object which contains a list of the all the prices.
gridView String indicates whether current view is gridview or listview

Methods

(static) getTranslationLabels()

Method to get digital commerce translations.

(static) getTranslationLabels()

Method to get digital commerce translations.