CnAuditTrailWidget
The audit-trail widget: a CnAuditTrailCard that finds its object by itself. The card needs register, schema and objectId; the detail render paths supply the current object in different ways, so the widget reads whichever is present: explicit props first, then the injected object context, then content.
The widget registers itself as the audit-trail type (a detail-page widget), so a manifest places it by that key. It is also a named export:
import { CnAuditTrailWidget } from '@conduction/nextcloud-vue'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
register | string | '' | OpenRegister register slug or id. |
schema | string | object | '' | The schema slug, or the schema object (its slug, name or id is used). |
objectId | string | '' | The audited object's id. |
title | string | '' | Card title override. Defaults to the card's translated label. |
maxDisplay | number | 0 | Most audit rows shown. 0 uses the card default. |
scope | string | '' | object (default) is one object's trail. app lists the app-wide feed, narrowed to register / schema when set, and needs no object. Also read from content.scope. |
content | object | {} | The stored widget content: { title, maxDisplay, scope?, register?, schema?, objectId? }. |
Reference (auto-generated)
OpenRegister reliance
medium: this component relies on OpenRegister for part of what it does. 0 direct references, 7 files reached through imports.
Through: CnAuditTrailCard.
See the reliance overview for the filterable list.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
register | string | '' | OpenRegister register slug/id — object context spread as props by CnWidgetGrid (slot path). | |
schema | union | '' | OpenRegister schema — a slug string, or the schema OBJECT the detail-context merge supplies (its slug/name/id is used). | |
objectId | string | '' | The audited object's id — object context spread as props by CnWidgetGrid (slot path). | |
title | string | '' | Optional card title override (defaults to the card's translated label). | |
maxDisplay | number | 0 | Maximum audit rows to render (0 falls back to the card default). | |
scope | string | '' | app lists the app-wide feed (every object the caller may read, narrowed to register / schema when set) and needs no object; object (the default) is one object's trail. Also read from content.scope. | |
content | object | \{\} | Stored widget content blob (CnDashboardPage registry branch): { title, maxDisplay, register?, schema?, objectId? }. |