Constructor
new DCAssetItemDetails()
Properties:
Name | Type | Description |
---|---|---|
asset |
Array | object containing a single asset. |
Example
Sample Usage -
Include the component in your template by adding c-dc-asset-item-details custom tag
<c-dc-asset-item-details asset={childAsset} is-parent=false></c-dc-asset-item-details>
| Attribute Name | Type Expected | Required |
|-------------------|---------------------------------------------------------------------------------|----------|
| asset | It expects an object which contains a current asset from asset list | Yes |
| isParent | It expects a boolean value determines if current asset is parent | Yes |
KEY INFO -
events fire : none
events registered : none
Dependency - c-dc-asset-item-details is a child component of c-dc-asset-details.
It is used inside c-dc-asset-details for displaying child assets.
| Parent Component | Expected Children Components |
|--------------------------|------------------------------|
| c-dc-asset-details | none |
Sample with slots -
<c-dc-asset-item-details >
<span slot="{slot_name}">
Custom HTML elements goes here
</span>
</c-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) assetItemClass
This function is used as getter for asset item css class
(static) assetPromotions
Method to fetch promotion string from getPromotions utility