VlocityDCAssetItemDetails

VlocityDCAssetItemDetails

vlocity-dc-asset-item-details is a component used for displaying asset details for each asset.

Constructor

new VlocityDCAssetItemDetails()

Properties:
Name Type Description
asset Object an object containing current child asset
isParent Boolean a boolean value which determines if current asset is parent
Source:
Example
Sample Usage -

Include the component in your template by adding vlocity-dc-asset-item-details custom tag

<vlocity-dc-asset-item-details .asset="${asset} isParent="{true}"></vlocity-dc-asset-item-details>

| Attribute Name    | Type Expected                                                                   | Required |
|-------------------|---------------------------------------------------------------------------------|----------|
| assets            | It expects an object which contains current child asset                         |   Yes    |
| isParent          | It expects a boolean value determines if current asset is parent                |   Yes    |

 KEY INFO -

 events fired : "none"

 events registered : "none"

 Dependency - vlocity-dc-asset-item-details is a child level component which is commonly used inside the vlocity-dc-asset-details
 component to display the child and nested child assets.


               | Parent Component          | Expected Children Components |
               |---------------------------|------------------------------|
               | vlocity-dc-asset-details  | none                         |


Sample with slots -

<vlocity-dc-asset-item-details>
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</vlocity-dc-asset-item-details>

List of available slots -

| Slot names                  | Dynamic     | Description                        | Impact                                 |
|--------------------------   |-------------|------------------------------------|----------------------------------------|
| nds-dc-asset-item-details   | -           | Wrapper for asset item details     | Replaces each asset detail view        |

Extends

  • LitElement

Members

(static, readonly) properties

Properties that will be available in the template binding
Source:

Methods

(static) getPromotions()

Method to fetch promotion string from getPromotions utility
Source: