LabelLocate this document in the navigation structure

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 designproperty 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

    Hamburg

    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.

Properties Overview
Name Interface Type Initial Value Bindable

enabled

IWDUIElement

boolean

true

bindable

design

IWDLabel

WDLabelDesign

standard

bindable

labelFor

IWDLabel

String

 

not_bindable

text

IWDLabel

String (TranslatableText)

 

bindable

textDirection

IWDLabel

WDTextDirection

inherit

bindable

tooltip

IWDUIElement

String (TranslatableText)

 

bindable

visible

IWDUIElement

WDVisibility

visible

bindable

width

IWDLabel

String

 

bindable

wrapping

IWDLabel

boolean

false

bindable