Skip to content

Value label ​

About 3 min read

TwValueLabel · Category: Basic

Settings ​

These settings are in the properties panel on the right while the widget is selected. The default value is the value the widget has when it is first added to a page.

SettingTypeDefaultDescription
Process Value
processValue
Value (typed)99.9Main value of the widget, usually bound to a Tag or an expression in Bindings.
Unit
unit
Text—Unit shown after the value, e.g. °C. Empty shows no unit.
Unit from Tag
unitFromTag
CheckboxOffShows the unit from the tag definition of the Process Value binding (Direct) instead of Unit. On a shared modal it follows the modal's tag prefix. Unit is used when the tag has no unit and in the Editor. Only a plain tag name or a single quoted tag qualifies; a calculated expression such as 'Flow' / 1000 keeps Unit.
Fraction Digits
fractionDigits
Number1Maximum number of decimals (0–6). The value is rounded and formatted for the current language; non-numeric values are shown as they are.
Label Class
labelClass
CSS classes—Use the widget's CSS class for styling.
Data Coverage Indicator
coverageIndicator
SelectiongapOnly applies to __cons consumption snapshot bindings. Only data gaps: shows a warning icon when the period has a data gap. Gaps and partial periods: also shows a clock icon for periods that are not finished yet (today, this month). Off: no icon.
Options: gap Only data gaps, all Gaps and partial periods, none Off
Label Style
labelStyle
Text—Inline CSS for the unit text, e.g. color: gray; font-size: 12px.
Enable Flashing
enableFlashing
CheckboxOffMakes the widget blink (an opacity pulse every second). Usually bound to an alarm condition.
Log Button
logButton
CheckboxOffAt runtime shows a chart icon when hovering the widget; clicking it adds the Tags bound to the widget to the log Tag list.

Bindings ​

In the Bindings (Rules) section of the properties panel, a Tag can be bound to the following properties of this widget with a Direct binding. The binding types (Direct, IntRange, FloatRange, Boolean, Bit) are the same for all widgets; they are described on the Widget Reference page.

title, visible, authorization, x, y, width, height, rotation, class, foregroundColor, backgroundColor, borderColor, borderStyle, borderWidth, borderRadius, borderTopLeftRadius, borderTopRightRadius, enableFlashing, logButton, to.type, processValue, unit, unitFromTag, fractionDigits, labelClass, coverageIndicator

The style fields of the widget can also be bound as style.<field> (e.g. style.width, style.height, style.left, style.top).

Common sections ​

While this widget is selected, the properties panel also shows these common sections: General, Layout, Appearance, Navigation (To), Bindings (Rules). These sections are described on the Page Editor page.

2WinScada 2.10