Ga naar hoofdinhoud

CnStatsBlockWidgetForm

Config sub-form for the stats-block (CnStatsBlockWidget) "Statistic card" dashboard widget. Drives CnAddWidgetModal and the cog editor. Collects the OpenRegister source (register, schema, aggregation, optional field, filters) plus presentation (title, count label, colour variant, icon).

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 { title, props, dataSource } blob on every field change.

Notes

  • validate() requires register + schema (and a field for non-count metrics).
  • The assembled content is consumed by CnStatsBlockWidget, which self-fetches the count from dataSource.