Skip to main content

CnImageWidgetForm

Config sub-form for the image widget — URL, alt text, link, object-fit.

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. Pre-fills every control from editingWidget.content.
valueobject\{ ...DEFAULT_CONTENT \}Initial content values — used when not editing and the parent supplies registry defaults.
uploadFnFunctionnullOptional async uploader (file) => url; when set, an upload control supplements the image-URL field.

Events

NamePayloadDescription
update:contentEmitted with the assembled {url, alt, link, fit} blob on every field change.