CnCountdownWidgetForm
The config sub-form for a countdown widget. Used by CnAddWidgetModal and the cog editor.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content | Object | {} | The stored config: { field, label, icon, thresholds, showDate }. |
Events
| Event | Payload | Description |
|---|---|---|
update:content | object | The 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
CnCountdownWidgetfor the widget this configures
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
content | { field?: string, label?: string, icon?: string, thresholds?: object, showDate?: boolean } | \{\} | The stored config: { field, label, icon, thresholds, showDate }. |
Events
| Name | Payload | Description |
|---|---|---|
update:content | — | |
update:content Emitted with the edited config blob. | — |