Ga naar hoofdinhoud

CnCountdownWidgetForm

The config sub-form for a countdown widget. Used by CnAddWidgetModal and the cog editor.

Props​

PropTypeDefaultDescription
contentObject{}The stored config: { field, label, icon, thresholds, showDate }.

Events​

EventPayloadDescription
update:contentobjectThe edited config blob.

Notes​

  • An empty threshold input removes the band rather than storing 0. A stored zero would colour every future date as urgent, which is the opposite of leaving the field blank.

See also​

Props​

NameTypeRequiredDefaultDescription
content{ field?: string, label?: string, icon?: string, thresholds?: object, showDate?: boolean }\{\}The stored config: { field, label, icon, thresholds, showDate }.

Events​

NamePayloadDescription
update:content—
update:content Emitted with the edited config blob.—