VlocityDCOfferListViewPrice

VlocityDCOfferListViewPrice

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

Constructor

new VlocityDCOfferListViewPrice()

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

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

<vlocity-dc-offer-list-view-price .priceResult="priceObject" displayMode="grid/list" isOfferTypePromotion = "true/false">
</vlocity-dc-offer-list-view-price>

| Attribute Name               | Type Expected                                                                            | Required |
|------------------------------|------------------------------------------------------------------------------------------|----------|
| priceResult                  | An object which contains a list of the all the prices                                    | Required |
| displayMode                  | A string which indicates whether current view is gridview or listview                    | Required |
| isOfferTypePromotion         | boolean value that indicates whether offer is of type promotion.                         | Optional |

 KEY INFO -

 events fired : "none"

 events registered : "none"

 Dependency - vlocity-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 vlocity-dc-offer-list-view and vlocity-dc-offer-grid-view but it can also be used as an independent component.

               | Parent Component             | Expected Child Component                 |
               |------------------------------|------------------------------------------|
               | vlocity-dc-offer-list-view   | none                                     |
               | vlocity-dc-offer-grid-view   |                                          |

Extends

  • LitElement

Members

(static, readonly) properties

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