Start of Content Area

Object documentation Label API  Locate the document in its SAP Library structure

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

Description of UI Element Properties

·        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

This graphic is explained in the accompanying text

The UI element is displayed without the left design bar.

standard

This graphic is explained in the accompanying text

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.

inherit

The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element.

ltr

The text runs from left to right.

rtl

The text runs from right to left.

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.

Data Binding

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.

Overview of Inherited and Additional Properties

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

 

 

End of Content Area