Label
<Label>
controls are used to display text. <Label>
controls cannot be edited by the Web App user.
Attribute | Description |
---|---|
value | Contains the label text.
Possible values: Any string |
background | Defines a color for the background of the control.
Possible values:
|
enabled | Defines if the user can interact with the control.
Possible values:
The
enabled attribute replaces the obsolete disabled attribute. enabled="true" thus corresponds to the obsolete
disabled="false" attribute
.
|
fontFamily | Defines the font family.
Possible values:
|
fontSize | Defines the font size.
Possible values:
|
fontStretch | Sets the width of the single characters.
This attribute overrides the default width of the characters of the Web App for this control.
Possible values:
This attribute doesn't work with the |
fontStyle | Defines the font style.
This attribute overrides the default style of the characters of the Web App for this control.
Possible values:
This attribute doesn't work with the |
fontWeight | Defines the font weight.
This attribute overrides the default font weight of the Web App for this control.
Possible values:
This attribute doesn't work with the |
foreground | Defines a color for the foreground (texts etc.) of the control.
Possible values:
|
horizontalAlign | Direction in which the elements flow. The order of the elements corresponds to their declaration. Possible values:
|
textOverflow | Defines what happens if the page is full. Possible values:
|
visible | Defines if the control is visible.
Possible values: |
Example <Label>
The following example shows the usage of the <Label>
tag. In this example, the labels are filled via data binding.
<Properties>
<Property name="number" type="Decimal" />
<Property name="boolean" type="Boolean" />
</Properties>
<FlowLayout>
<Label value="Label"/>
<Label value="#number"/>
<Label value="#boolean"/>
</FlowLayout>
The data that is displayed in the labels via data binding must be provided by a Technical Process in the following form:
<?xml version="1.0" encoding="UTF-8" ?>
<number>11.1</number>
<boolean>1</boolean>
The above code creates the following labels: