Ga naar hoofdinhoud

CnHeaderWidgetForm

Config sub-form for the header widget — title, subtitle, background, overlay, CTA.

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
editingWidget{content: object}|nullnullThe placement being edited, or null in create mode.
valueobject\{ ...DEFAULT_CONTENT \}Initial content values — used when not editing and the parent supplies registry defaults.
uploadFnFunction|nullnullOptional upload transport async (dataUrl) => ({ url }). When given, an uploaded background image is sent through it and the returned URL is stored; otherwise the file is embedded as a data URL (same-origin, so it isn't blocked by CSP the way external URLs are).

Events

NamePayloadDescription
update:contentEmitted with the assembled content blob on every field change.