The Label UI element represents the IWDLabel class.
The Label UI element is used for labeling other UI elements. Therefore, it is always associated with another UI elements. This UI element ensures accessibility of the Web Dynpro application. The appearance is defined by the design property.
You can also define other UI elements as label. These include the following UI elements:
· DropDownByIndex
· DropDownByKey
· ToolBarDropDownByIndex
· ToolBarDropDownByKey
·
design
Specifies the design of the
UI element. The design property can be filled with the following
values and is represented by the enumeration type WDLabelDesign.
emphasized |
|
The UI element is highlighted. |
light |
|
The UI element is displayed without the left design bar. |
standard |
|
A default design of the UI element. |
·
labelFor
Specifies the ID of the UI element to be labeled.
·
text
Label text.
·
textDirection
Specifies the text direction and allows you to use Label UI elements for texts
in languages which require a specific text direction. The textDirection property can be filled with the following
values and is represented by the enumeration type WDTextDirection.
The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element. |
|
The default value for this property is inherit.
·
width
Specifies the width of the
Label UI element and can be specified in CSS units like em, ex, pixels, or
percentage.
·
wrapping
Indicates whether or not the text is wrapped. If the value is false, the text is not wrapped.
Since the relationship between Label UI element and associated UI element is specified by the static layout of a view, the labelFor property is not defined as bindable.
Name |
Interface |
Type |
Initial Value |
Bindable |
Value Required |
enabled |
IWDUIElement |
boolean |
true |
bindable |
No |
design |
IWDLabel |
WDLabelDesign |
standard |
bindable |
No |
labelFor |
IWDLabel |
String |
|
not_bindable |
Yes |
Text |
IWDLabel |
String (TranslatableText) |
|
bindable |
No |
textDirection |
IWDLabel |
WDTextDirection |
inherit |
bindable |
No |
tooltip |
IWDUIElement |
String (TranslatableText) |
|
bindable |
No |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |
No |
width |
IWDLabel |
String |
|
bindable |
No |
wrapping |
IWDLabel |
boolean |
false |
bindable |
No |