Class sap.ui.commons.TextViewModule: sap/ui/commons/TextView
Is used to display some continous text. The control can inherit the text direction from its parent control.
Deprecated API:Since version 1.38.
sClassName and enriches it with the information contained in oClassInfo.ariaDescribedBy.ariaLabelledBy.ariaDescribedBy.ariaLabelledBy. Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object. 
The supported settings are:
- Properties - text : string (default: )
- textDirection : sap.ui.core.TextDirection (default: Inherit)
- enabled : boolean (default: true)
- helpId : string (default: )
- accessibleRole : sap.ui.core.AccessibleRole
- design : sap.ui.commons.TextViewDesign (default: Standard)
- wrapping : boolean (default: true)
- semanticColor : sap.ui.commons.TextViewColor (default: Default)
- textAlign : sap.ui.core.TextAlign (default: Begin)
- width : sap.ui.core.CSSSize
 
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
| {string} | sId? | ID for the new control, generated automatically if no ID is given | 
| {object} | mSettings? | Initial settings for the new control | 
- Deprecated:
- Since version 1.38.
sClassName and enriches it with the information contained in oClassInfo. oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend. 
| {string} | sClassName | Name of the class being created | 
| {object} | oClassInfo? | Object literal with information about the class | 
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata | 
| {function} | Created class / constructor function | 
| {sap.ui.base.Metadata} | Metadata object describing this class | 
ariaDescribedBy. | {string|sap.ui.core.Control} | vAriaDescribedBy | the ariaDescribedBy to add; if empty, nothing is inserted | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
ariaLabelledBy. | {string|sap.ui.core.Control} | vAriaLabelledBy | the ariaLabelledBy to add; if empty, nothing is inserted | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
text to model data.  See ManagedObject.bindProperty for a detailed description of the possible properties of oBindingInfo
| {object} | oBindingInfo | The binding information | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
accessibleRole. The ARIA role for the control.
| {sap.ui.core.AccessibleRole} | Value of property accessibleRole | 
ariaDescribedBy. | {sap.ui.core.Control[]} | 
ariaLabelledBy. | {sap.ui.core.Control[]} | 
design. Defines the visual appearance of the control.
 Default value is Standard. 
| {sap.ui.commons.TextViewDesign} | Value of property design | 
enabled. Switches the enabled state of the control. When the control is disabled, it is greyed out and no longer focusable.
 Default value is true. 
| {boolean} | Value of property enabled | 
helpId. Unique identifier used for help services.
 Default value is . 
| {string} | Value of property helpId | 
semanticColor. Semantic color of the text View
 Default value is Default. 
| {sap.ui.commons.TextViewColor} | Value of property semanticColor | 
text. Text to be displayed.
 Default value is . 
| {string} | Value of property text | 
textAlign. Sets the horizontal alignment of the text.
 Default value is Begin. 
| {sap.ui.core.TextAlign} | Value of property textAlign | 
textDirection. Determines the text directionality. Available options are LTR and RTL. Alternatively, the control can inherit the text direction from its parent control.
 Default value is Inherit. 
| {sap.ui.core.TextDirection} | Value of property textDirection | 
width. Width of the TextView
| {sap.ui.core.CSSSize} | Value of property width | 
wrapping. Disabled automatic wrapping of the text.
 Default value is true. 
| {boolean} | Value of property wrapping | 
ariaDescribedBy. | {sap.ui.core.Control[]} | An array of the removed elements (might be empty) | 
ariaLabelledBy. | {sap.ui.core.Control[]} | An array of the removed elements (might be empty) | 
ariaDescribedBy. | {int|string|sap.ui.core.Control} | vAriaDescribedBy | The ariaDescribedByto be removed or its index or ID | 
| {sap.ui.core.Control} | the removed ariaDescribedBy or null | 
ariaLabelledBy. | {int|string|sap.ui.core.Control} | vAriaLabelledBy | The ariaLabelledByto be removed or its index or ID | 
| {sap.ui.core.Control} | the removed ariaLabelledBy or null | 
accessibleRole. The ARIA role for the control.
 When called with a value of null or undefined, the default value of the property will be restored. 
| {sap.ui.core.AccessibleRole} | sAccessibleRole | New value for property accessibleRole | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
design. Defines the visual appearance of the control.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is Standard. 
| {sap.ui.commons.TextViewDesign} | sDesign | New value for property design | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
enabled. Switches the enabled state of the control. When the control is disabled, it is greyed out and no longer focusable.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is true. 
| {boolean} | bEnabled | New value for property enabled | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
helpId. Unique identifier used for help services.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is . 
| {string} | sHelpId | New value for property helpId | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
semanticColor. Semantic color of the text View
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is Default. 
| {sap.ui.commons.TextViewColor} | sSemanticColor | New value for property semanticColor | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
text. Text to be displayed.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is . 
| {string} | sText | New value for property text | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
textAlign. Sets the horizontal alignment of the text.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is Begin. 
| {sap.ui.core.TextAlign} | sTextAlign | New value for property textAlign | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
textDirection. Determines the text directionality. Available options are LTR and RTL. Alternatively, the control can inherit the text direction from its parent control.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is Inherit. 
| {sap.ui.core.TextDirection} | sTextDirection | New value for property textDirection | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
width. Width of the TextView
 When called with a value of null or undefined, the default value of the property will be restored. 
| {sap.ui.core.CSSSize} | sWidth | New value for property width | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
wrapping. Disabled automatic wrapping of the text.
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is true. 
| {boolean} | bWrapping | New value for property wrapping | 
| {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining | 
text from model data. | {sap.ui.commons.TextView} | Reference to thisin order to allow method chaining |