Show TOC Start of Content Area

Object documentation FormattedTextView     This graphic is explained in the accompanying text  Locate the document in its SAP Library structure

Definition

FormattedTextView displays text that can contain formatting commands that are defined in XML syntax.

To define the content of the FormattedTextView, select the text property of your FormattedTextView element and:

      choose This graphic is explained in the accompanying text or

      bind the text property to the context by choosing This graphic is explained in the accompanying text.

 

Description of UI Element Properties

      hAlign

Specifies the horizontal alignment of the content within the FormattedTextViewelement. The value native for the layout property is ignored. Property hAlign can take the following values and is represented by the list type WDInputFieldAlignment:

auto

Automatic alignment of the text content. The alignment is specified by the usage of the UI element - for example, by the data type of the value to be represented.

beginOfLine

The text content is always displayed at the beginning of the line. The text content for value ltr of property textDirection is therefore left-justified. The text content for value rtl is right-justified.

center

Centered alignment.

endOfLine

The text content is always displayed at the end of the line. The text content for value ltr of property textDirection is therefore right-justified. The text content for value rtl is left-justified.

forcedLeft

The text content is always left-justified, regardless of whether the value is ltr or rtl for the textDirection property.

forcedRight

The text content is always right-justified, regardless of whether the value is ltr or rtl for the textDirection property.

left

Left-justified alignment. This value is deprecated. Use beginOfLine instead.

right

Right-justified alignment. This value is deprecated. Use forcedRight instead.

The default value for this property is auto.

      text

Determines the text displayed.

      textDirection

Specifies the text direction and allows you to use dropdown list boxes for texts in languages that require a specific text direction. The textDirection property can take the following values and is represented by enumeration type WDTextDirection.

inherit

The text direction is inherited from the parent element. The text direction is therefore identical that of the parent element.

ltr

The text runs from left to right.

rtl

The text runs from right to left.

The default value is inherit.

Properties Overview

Name

Interface

Type

Initial Value

Bindable

enabled

IWDUIElement

boolean

true

Bindable

hAlign

IWDFormattedTextView

WDInputFieldAlignment

auto

Bindable

text

IWDFormattedTextView

IWDFormattedText

 

 

textDirection

IWDFormattedTextView

WDTextDirection

inherit

Bindable

tooltip

IWDUIElement

String (TranslatableText)

 

Bindable

visible

IWDUIElement

WDVisibility

visible

Bindable

 

Events

      onAction(String href)

Event onAction is triggered when the user clicks on a link (<a> tag) inside the FormattedTextView. The parameter contains the href attribute of the triggered link.

 

End of Content Area