Skip to main content

getWidgetTypeEntry

Look up a single widget type entry in the shared dashboardWidgetRegistry.

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

const entry = getWidgetTypeEntry(type)
ArgumentTypeDescription
typestringThe widget type key.

Return value

TypeDescription
DashboardWidgetEntry | nullThe registry entry, or null when the type is unknown so the caller can fall back gracefully.

CnWidgetGrid calls this to resolve a placement's renderer by its widgetKey. See dashboardWidgetRegistry for the entry shape and the resolution order.