Skip to main content

CnFilesWidget

Files browser widget (folder navigation, thumbnails, mime filter, sort).

Part of the dashboard widget library (v2). Registered with the dashboard widget registry and consumed by MyDash/LaunchPad's widget grid. See the widget library overview and docs/architecture/cards-and-widgets.md.

Reference

Props

NameTypeRequiredDefaultDescription
contentobject\{\}Persisted content blob configuring the folder + toolbar — see {@link CnFilesWidgetForm} for the full shape (folderPath, fileId, viewMode, allowUpload, allowDelete, …).
placementobject\{\}Placement entity; its id scopes the host Files endpoint.
isAdminbooleanfalseWhether the dashboard shell is in admin mode.
canEditbooleanfalseWhether the dashboard shell is in edit mode.

Additional props

PropTypeDefaultDescription
apiBaseString/apps/filesApp base for the host files-widget endpoints ({apiBase}/api/widgets/files/{placementId}/...). Set to point the widget at a consuming app's backend (e.g. /apps/mydash).