Skip to main content

CnStatWidgetForm

Config sub-form for the stat (CnStatWidget) dashboard widget. Drives both CnAddWidgetModal and the cog style editor. Collects the OpenRegister data source (register, schema, aggregation, optional value field, filters) plus presentation (label, icon, value colour, caption, number/currency 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 (and a value field for non-count metrics).
  • Schema properties are self-fetched from OpenRegister when register + schema are set.