
The TextView UI element provides an area for displaying a multiline text. You can assign a popup menu to a TextView which is visible when the user places the cursor on the TextView : When using a TextView element, we recommend to always add a label to ensure accessibility of the application.
Description of Properties
design
Describes the look of the TextView element. The Cascading Style Sheet (CSS) provided by SAP describes the variations of the design attribute display. The design property can be filled with the following values and is represented by the enumeration type WDTextViewDesign : emphasized , groupTitle , header 1 , header 2 , header 3 , header 4 , label , label_small , legend , monospace , reference , standard .
hAlign
Specifies the horizontal alignment of the content within the TextView element. The value native for the layout property is ignored. The hAlign property can take the following values and is represented by the list type WDInputFieldAlignment : auto (default value) , beginOfLine , center , endOfLine , forcedLeft , forcedRight , left , right .
layout
Describes the alignment of the text. The layout property can be filled with the following values and is represented by the enumeration type WDTextViewLayout : block , native , paragraph
text
Describes the text to be displayed.
semanticColor
critical , diminished , marked1 , marked2 , negative , positive , standard
textDirection
Specifies the text direction and allows you to use input fields 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 .
width
Specifies the width of the TextView UI element that you can specify in CSS sizes, such as em, ex, pixels or percentage values.
wrapping
Specifies whether or not text can be wrapped to the next line.