<Label> controls are used to display text. <Label> controls cannot be edited by the Web App user.
|
Attribute |
Description |
|---|---|
|
|
Contains the label text.
Possible values: Any string |
|
|
Defines a color for the background of the control.
Possible values:
|
|
|
Defines if the user can interact with the control.
Possible values: The
|
|
|
Defines the font family.
Possible values:
|
|
|
Defines the font size.
Possible values:
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
Defines a color for the foreground (texts etc.) of the control.
|
|
|
Direction in which the elements flow. The order of the elements corresponds to their declaration. Possible values:
|
|
|
Defines what happens if the page is full. Possible values:
|
|
|
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: