CnTagsCard
Compact tags widget for the pluggable integration registry. Fetches the Nextcloud system tags attached to an OpenRegister object and renders them as inline pills inside a CnDetailCard. Surface-aware shell around the tags integration: handles user-dashboard, app-dashboard, detail-page, and single-entity from a single component.
Wraps: CnDetailCard
Try it
Loading CnTagsCard playground…
Usage
<CnTagsCard
:register="registerId"
:schema="schemaId"
:object-id="objectId"
surface="detail-page" />
Pass pre-translated labels when your app handles i18n:
<CnTagsCard
:register="reg"
:schema="schema"
:object-id="id"
:no-tags-label="t('myapp', 'No tags')" />
Display props
| Prop | Type | Default | Notes |
|---|---|---|---|
title | String | '' | Override the card title (defaults to the translated label). |
collapsible | Boolean | false | Whether the card collapses. |
apiBase (api-base) | String | '/apps/openregister/api' | Base API URL. |
Reference
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
register | string | ✓ | — | OpenRegister register id (slug or uuid). |
schema | string | ✓ | — | OpenRegister schema id (slug or uuid). |
objectId | string | ✓ | — | Parent object id. |
surface | string | 'detail-page' | Rendering surface — passed for AD-19 surface fallback consumers. | |
apiBase | string | '/apps/openregister/api' | Base API URL. | |
collapsible | boolean | false | Whether the card collapses. | |
title | string | '' | Override the card title (defaults to the translated label). | |
noTagsLabel | string | () => t('nextcloud-vue', 'No tags') | Pre-translated empty label. |