vlocity-dc-offer-list-view-image is a component used for rendering offer image in offer list.
Constructor
new VlocityDCOfferListViewImage()
Properties:
Name
Type
Description
offerAttachments
Object
indicates an object which contains a list of the all the image attachments.
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-image custom tag
<vlocity-dc-offer-list-view-image .offerAttachments="attachmentsObject" displayMode="grid/list">
</vlocity-dc-offer-list-view-image>
| Attribute Name | Type Expected | Required |
|---------------------|---------------------------------------------------------------------------------|----------|
| offerAttachments | An object which contains a list of the all the image attachments. | Required |
| displayMode | A string which indicates whether current view is gridview or listview | Required |
KEY INFO -
events fired : "none"
events registered : "none"
Dependency - vlocity-dc-offer-list-view-image is a component used for rendering offer image 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
offerAttachments
Object
indicates an object which contains a list of the all the image attachments.
displayMode
String
indicates whether current view is gridview or listview