Show TOC

Label PropertiesLocate this document in the navigation structure

Properties in View Designer
  • design

    Display of the UI element.

    This property can be personalized by administrators.

    Value Visualization Description Can Be Set Using Personalization

    standard

    Standard display with colon

    Yes

    light

    Standard display without colon

    Yes

    emphasized

    Highlighted display (without colon)

    Yes

  • labelFor

    ID of the interface element to be labeled, for example, an InputField.

    Caution

    This input is mandatory. If you enter it incorrectly, a runtime error occurs.

    You can use a Label for the following UI elements:

    • BreadCrumb
    • Caption
    • CheckBox and CheckBoxGroup
    • DropDownByKey and DropDownByIndex
    • FileDownload and FileUpload
    • FormattedTextEdit and FormattedTextView
    • Image
    • InputField
    • ItemListBox
    • LinkToAction and LinkToUrl
    • ProgressIndicator
    • RadioButton, RadioButtonGroupByIndex, and RadioButtonGroupByKey
    • Table
    • TextEdit and TextView
    • ThresholdSlider
    • TransparentContainer
    • TriStateCheckBox
  • text

    Label text

    Note

    If the value property of the used UI element is linked through a context binding to the ABAP Dictionary, and the label property text is not set, the relevant text of the ABAP Dictionary is automatically used.

    This property can be personalized by administrators.

  • textDirection

    Text or writing direction.

    This enables labels of interface elements to be read in languages that have an RTL writing direction, such as Arabic or Hebrew, as opposed to LTR for languages like English.

    This property can be personalized by administrators.

    Value Description Can Be Set Using Personalization

    INHERIT

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

    Yes

    LTR

    Left to right text direction

    Yes

    RTL

    Right to left text direction

    Yes

  • width

    Width of the UI element; see also Methods and Properties.

    This property can be personalized by administrators.

  • wrapping

    Indicates whether or not the text is wrapped. If the value is false, the text is not wrapped.

    This property can be personalized by administrators.

  • editable

    If this property is set, you can double-click (slowly) on the label and then edit the label text.

    After you have changed the text and provided there is a binding to an event handler, the OnChange event is triggered.

    Note

    The persistence of the changed text depends on the data binding that was originally selected for the label in question.

    If the label text comes directly from the ABAP Dictionary (from a context binding), the changed text is only available in the OnChange event handler (in parameter newText). But if the text is retrieved using cl_wd_label_->get_text(), the Web Dynpro ABAP runtime returns the text from the ABAP Dictionary that resets the label of the UI element back to this text.