Ga naar hoofdinhoud

CnGaugeWidgetForm

Config sub-form for the gauge (CnGaugeWidget) dashboard widget. Drives CnAddWidgetModal and the cog style editor. Collects the value source, the target (static value or a second aggregate), warn/danger thresholds, and presentation (label, number format).

Props

PropTypeDefaultDescription
editingWidgetobject|nullnullThe placement being edited (pre-fills from editingWidget.content), or null in create mode.
valueobjectdefaultsInitial content values when not editing.

Events

EventPayloadDescription
update:contentobjectEmitted with the assembled content blob on every field change.

Notes

  • validate() requires register + schema.
  • Toggle the target between a static number and a live aggregate; thresholds drive the gauge colour.