DCAssetAttributes

DCAssetAttributes

c-dc-asset-attributes is the component for listing all the asset attributes.

Constructor

new DCAssetAttributes()

Properties:
Name Type Description
attributes Array Array containing list of all attributes of current asset.
Source:
Example
Sample Usage -

Include the component in your template by adding c-dc-asset-attributes  custom tag

<c-dc-asset-attributes .asset="${asset}"></c-dc-asset-attributes >

| Attribute Name    | Type Expected                                                                   | Required |
|-------------------|---------------------------------------------------------------------------------|----------|
| asset             | It expects an object which contains a current asset from asset list             |   Yes    |

 KEY INFO -

 events fired : none

 events registered : none

 Dependency - c-dc-asset-attributes is a child component of c-dc-asset-details.
 It is used inside c-dc-asset-details for displaying attributes.


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

Sample with slots -

<c-dc-asset-attributes >
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</c-dc-asset-attributes >

List of available slots -

| Slot names                  | Dynamic     | Description                     | Impact                                 |
|--------------------------   |-------------|---------------------------------|----------------------------------------|
| dc-asset-attributes         | -           | Wrapper for asset attributes    | Replaces asset attributes              |

Extends

  • LitElement

Members

(static) attributeValue

This function is used as getter to get attribute value to be displayed in UI
Source: