Shows detailed information about an asset (metadata)
While it's made to live inside of anura-lightbox
, you could also put it somewhere else as a standalone component.
required: depends, live: yes, default: -
This is set automatically when used inside an anura-lightbox
. Otherwise you need to point it to an adapter.
<anura-details adapter="#my-adapter"></anura-details>
required: yes, live: yes, default: -
Asset ID of which to display metadata of. This is set automatically when used inside an anura-lightbox
that has a sidebar. Changing this will cause the component to reload.
<anura-details asset="123"></anura-details>
required: no, live: on-load, default: -
Only show metadata listed in this (comma-separated) list. The nature of the keys is specific to the implementation of the adapter. For convenience the key is shown in the data-id
attribute of each entry. E.g. name,info_108,info_42
<anura-details allowlist="name,info_123,info_456,info_789"></anura-details>
required: no, live: on-load, default: -
Don't show metadata listed in this (comma-separated) list. Ignored when an allowlist is defined. The nature of the keys is specific to the implementation of the adapter. For convenience the key is shown in the data-id
attribute of each entry. E.g. info_113,file_size
.
<anura-details denylist="info_666"></anura-details>
required: no, live: on-load, default: false
Adapters can provide an arbitrary number of metadata sections (e.g. "General Info" and "Information Fields"). Set merge-sections
to true
in order to show all of them in a single section (called "Metadata", translation-key: metadata
).
<anura-details merge-sections="true"></anura-details>
required: no, live: on-load, default: 300
Long text fields get clamped by default, use this to set after how many characters this should trigger, or set it to 0
to disable.
<anura-details line-clamp="500"></anura-details>
required: no, live: on-load, default: off
Some DAMs send a mix of <br>
and \n
as line breaks. Turn this on to try and normalize them to <br>
.
<anura-details nl2br></anura-details>
required: no, live: on-load, default: -
A comma-separated list of detail sections that should be folded by default. You can get the ID of the section from its data-id
attribute. E.g. technical_information,meta_data
.
Note that sections that have been folded manually by the user will also be persisted in this property, but only in the current session.
<anura-details folded="technical_information"></anura-details>
required: no, live: on-load, default: -
When set, a second tab will appear that contains related assets of requested relation types (if your DAM supports that)
<anura-details relation="first-relation-id,secnod-relation-id"></anura-details>
required: no, live: on-load, default: -
When set, the detail page will load the assets parent node/folder/categories and display them as metadata. When you have an anura-tree
, it will render them as buttons to navigate to them.
<anura-details withp-parents="optional-root-node-id"></anura-details>
<div part="details-container">
<h4 part="details-title">
<anura-icon part="details-title-icon"></anura-icon>
</h4>
<dl part="details-dl">
<dt part="details-dt"></dt>
<dd part="details-dd">
<a part="details-link"></a>
</dd>
<!-- snip, repeating dt & dd-->
</dl>
<!-- snip, repeating h4 & dt-->
</div>