Metadata panel
Simple Web component to display the Metadata of a IIIF Manifest into markup.
<metadata-panel
manifest-id="https://iiif.wellcomecollection.org/presentation/b18035723"
variation="table"
label-style="small-caps"
label-width="250"
allow-html="true"
bordered="false"
separator="<br/>"
></metadata-panel>
The metadata panel is rendered as a table with 2 columns, one for the label and one for the value.
The following CSS class names are available:
metadata-panel
- wrapping component for table.metadata-key
- metadata key cell (<td />
).metadata-value
- metadata value cell (<td />
)
The following attributes are supported:
manifest-id
- Valid IIIF Manifest URL (2 or 3)variation
- "table" or "list"label-style
- 'muted', 'bold', 'caps' or 'small-caps' label stylinglabel-width
- custom width in pixels for the label (in table variation)allow-html
- Will render IIIF values as HTML if they are presentbordered
- Show border/line between label and valueseparator
- When there are multiple IIIF values or labels, what should be used to separate them
If you want the built-in CSS you can import it or embed it:
import "@digirati/canvas-panel-web-components/dist/bundle.css";