VlocityDCOfferConfigurations

VlocityDCOfferConfigurations

vlocity-dc-offer-configurations is a web component that is used to display offer attributes that are non configurable.

Features
1.Dispaly non configurable offer attribute

Constructor

new VlocityDCOfferConfigurations()

Properties:
Name Type Description
offerAttribute OfferAttributeObject non configurable attribute of an offer.
Properties
Name Type Description
attributeId String indicates attribute id.
inputType String indicates input type.
label String indicates attribute label.
multiselect String
userValues String
values Array.<OfferAttributeValueObject>
Properties
Name Type Description
defaultValue String attribute default value.
disabled String is attribute disabled.
readonly String indicates if attribute is read only.
value String indicates attribute value.
Example
Sample Usage -

Include the component in your template simply by adding vlocity-dc-offer-config custom tag

<vlocity-dc-offer-configurations .offerAttribute="${attribute}"></vlocity-dc-offer-configurations>

   | Attribute Name    | Type Expected                                                                   | Required |
   |-------------------|---------------------------------------------------------------------------------|----------|
   | offerAttribute    | It expects value in OfferAttributeObject format                                 | required |

--------------------------------------------------------------------------------------------------------------------------------------
 KEY INFO -

 events fired : none

 events registered :none

 Dependency - vlocity-dc-offer-configurations is an independent component and have no dependency on parent component.

               | Parent Component | Expected Child Component  |
               |------------------|---------------------------|
               | none             | none                      | 

Sample with slots - 

<vlocity-dc-offer-configurations>
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</vlocity-dc-offer-configurations>

List of available slots - 

| Slot names                      | Dynamic     | Description                 | Impact               |
|---------------------------------|-------------|----------------------------------------------------|
| dc-offer-configurations-wrapper | -           | Wrapper for template        | Replaces DOM         |

Extends

  • LitElement

Members

(static, readonly) properties

Properties that will be available in the binding system
Properties:
Name Type Description
offerAttribute OfferAttributeObject offer's non configurable attribute

Methods

(static) connectedCallback()

Invoked when vlocity-dc-offer-configurations component is added to the document’s DOM.