Ga naar hoofdinhoud

CnObjectMetadataModal

Read-only object metadata (@self / system fields: id, uuid, uri, register, schema, created, updated, owner, …) in a small NcDialog. A thin wrapper around CnObjectMetadataWidget with the card header suppressed, since the dialog supplies the title.

Surfaced on demand — e.g. from the Metadata item in CnObjectDataWidget's overflow Actions menu — instead of taking up permanent space on the detail page.

Usage

<!-- v-if mount + @close -->
<CnObjectMetadataModal
v-if="metadataOpen"
:object-data="object"
@close="metadataOpen = false" />

<!-- or :open binding -->
<CnObjectMetadataModal
:open="metadataOpen"
:object-data="object"
@update:open="metadataOpen = $event" />

Props

PropTypeDefaultDescription
openBooleantrueWhether the dialog is open
nameString'Metadata'Dialog title
object-dataObjectrequiredThe object whose metadata to display. Supports flat objects and objects carrying a @self metadata block.
includeArraynullMetadata fields to include (whitelist). When null, all available fields are shown.
excludeArray[]Metadata fields to exclude

Events

EventPayloadDescription
@update:openBooleanThe dialog open state changed
@closeThe dialog was dismissed (convenience for v-if-mounted hosts)