Counter widget: one to three linked counters are the digits of one number, published on one message in the finest counter's unit (hours and minutes send 07:30 as 450, 07:55 + 5 min carries to 08:00); wraps or stops at the coarsest's min/max. The arithmetic is one pure module, ui/core/counter.ts, with counter.check.ts. A tile steps each counter with a press up and down and publishes once 300 ms after the last; a round face turns the selected counter on the ring (wheel, keys, a drag counted in steps), its arc where that counter stands in its turn, and a press on a counter's digits selects it. Default config is the time picker. Editor rows, widgetIssue, server type and dtype, docs
This commit is contained in:
@@ -4642,7 +4642,7 @@ export const WidgetDefSchema = {
|
||||
},
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['stat', 'gauge', 'chart', 'markdown', 'agenda', 'notification', 'bar', 'icon', 'forecast', 'clock', 'media', 'player', 'embed', 'button', 'buttons', 'switch', 'slider', 'input', 'dropdown', 'color'],
|
||||
enum: ['stat', 'gauge', 'chart', 'markdown', 'agenda', 'notification', 'bar', 'icon', 'forecast', 'clock', 'media', 'player', 'embed', 'button', 'buttons', 'switch', 'slider', 'input', 'dropdown', 'color', 'counter'],
|
||||
title: 'Type'
|
||||
},
|
||||
title: {
|
||||
@@ -4694,7 +4694,13 @@ The first two are a \`\`list\`\` message, the third a \`\`str\`\`, which is what
|
||||
|
||||
A slider may also show what it is setting: \`\`reading\`\` binds
|
||||
\`\`{message, dtype, label}\`\` — a room's temperature beside its setpoint —
|
||||
held to the same numbers its target is.`
|
||||
held to the same numbers its target is.
|
||||
|
||||
A counter publishes one number to its target, of which its \`\`counters\`\`
|
||||
are the digits: up to three \`\`{label, step, size, min, max}\`\`, coarsest
|
||||
first, so hours and minutes publish 07:30 as 450. \`\`wrap\`\` says whether it
|
||||
wraps round at its ends; \`\`docs/interface/dashboards.md\`\` has the
|
||||
arithmetic.`
|
||||
} as const;
|
||||
|
||||
export const WidgetFootprintSchema = {
|
||||
@@ -4721,7 +4727,7 @@ export const WidgetFootprintSchema = {
|
||||
},
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['stat', 'gauge', 'chart', 'markdown', 'agenda', 'notification', 'bar', 'icon', 'forecast', 'clock', 'media', 'player', 'embed', 'button', 'buttons', 'switch', 'slider', 'input', 'dropdown', 'color'],
|
||||
enum: ['stat', 'gauge', 'chart', 'markdown', 'agenda', 'notification', 'bar', 'icon', 'forecast', 'clock', 'media', 'player', 'embed', 'button', 'buttons', 'switch', 'slider', 'input', 'dropdown', 'color', 'counter'],
|
||||
title: 'Type'
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user