The element <label> inserts a text. If the text is to be determined by a formula, the formula is the value of the text attribute, for example text="this.name".
The text can also be created as a link. Such links are not, as usual, made of blue and underlined text and the link can only be accessed if the [Alt] key is pressed.
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
bColor | optional | 0,0,0 to 255,255,255 | System color | Background color as RGB value |
fColor | optional | 0,0,0 to 255,255,255 | System color | Font color as RGB value |
font | optional | Font name-style-size | System font | Font name, style, and size for displaying text |
hSize | optional | Width of the element in characters | ||
hSizePx | optional | Width of the element in pixels | ||
hSizeMax | optional | maximum width of the element in characters | ||
hSizeMaxPx | optional | maximum width of the element in pixels | ||
hSizeMin | optional | minimum width of the element in characters | ||
hSizeMinPx | optional | minimum width of the element in pixels | ||
link | optional | Formula to the object of the navigation target | ||
style | optional |
left, |
left = text is left-aligned |
|
text | optional | Text that is determined by a formula. The formula has no preceding =-sign (e.g.: text="this.name"). | ||
tooltip | optional | Text or Form-UI of the overlaying tooltip (see tooltip) | ||
visible | optional | true, false | true | true = label is visible false = label is invisible |
vSize | optional | Height of the element in characters | ||
vSizePx | optional | Height of the element in pixels | ||
vSizeMin | optional | minimum height of the element in characters | ||
vSizeMinPx | optional | minimum height of the element in pixels |
Allowed sub-elements | Quantity |
---|---|
tooltip | 0..1 |
The following figure shows some design possibilities for the representation of the element <label>:
Label with link:
The text is not displayed as a link, but defined with the formatting. The example shows a link to the parameter CardinalPoints.
<line>
<label font="Arial-bold-10" link="parameter('CardinalPoints')">Parameter CardinalPoints:</label>
<label font="Courier-bold-15" text="$CardinalPoints" link="parameter('CardinalPoints')"/>
</line>
Result: