Skip to main content

CnStackedBarWidgetForm

Settings form of the stacked-bar (CnStackedBarWidget) dashboard widget. It drives CnAddWidgetModal and the cog style editor. It edits the source, the field the records are grouped by, the order of the segments and the empty text. Static segments and the labels map are written in the manifest and pass through untouched.

Props​

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

Events​

EventPayloadDescription
update:contentobjectThe assembled content blob, emitted on every change.

Validation​

validate() returns an error when the register, the schema or the group field is missing. A widget with static segments and no source is valid as it is.