Ga naar hoofdinhoud

CnWidgetObjectTable

CnWidgetObjectTable is the built-in v2 widget that exposes CnDataTable to the manifest layer. It's a transparent pass-through — all props and listeners are forwarded.

Import

import { CnWidgetObjectTable } from '@conduction/nextcloud-vue'

Manifest usage

Referenced via widgetKey: "object-table" in a v2 manifest page's widgets[] array:

{
"id": "sources-table",
"slot": "body",
"widgetKey": "object-table",
"gridWidth": 12,
"props": {
"register": "openconnector",
"schema": "source",
"columns": ["name", "status", "lastSync"]
}
}

When CnPageRenderer mounts the page, CnWidgetGrid resolves the object-table key against BUILT_IN_WIDGETS, instantiates this wrapper, and passes the props map through to CnDataTable.

Props

All props are forwarded to CnDataTable — see the CnDataTable docs for the full surface. The commonly used ones in manifest widgets are:

PropTypeDescription
registerStringRegister slug for self-fetch mode.
schemaStringSchema slug for self-fetch mode.
columnsArrayExplicit column definitions (overrides schema-derived).
filterObjectServer-side filter map.
objectsArrayPre-fetched objects (disables self-fetch).
rowsArrayAlias for objects — forwarded directly to CnDataTable's rows prop.
loadingBooleanLoading flag forwarded to CnDataTable's skeleton state.

Events

All listeners are forwarded to CnDataTable. See its docs for the full event surface (@row-click, @sort, etc.).

Spec

  • REQ-MVR-006 (manifest-v2-renderer) — built-in widget: object-table