Content:
- Examples
- Properties
- Methods

In mobile UI design, it refers to the style, arrangement, and appearance of text.

txt = ui.addText( parent, text, options?, width?, height? ) → ui object: Text

Here are the methods available for Text Component

Examples

Example - Basic text control click to expand contents 

Example - Heading variants click to expand contents 

Example - Other variants click to expand contents 

Example - Alignments and colors click to expand contents 

Example - Icons click to expand contents 

Example - Html formatted text click to expand contents 

Properties

The following properties are available on the Text object:

absHeightNumber
absLeftNumber
absTopNumber
absWidthNumber
alignmentString
backColorString
backImageString
boldBoolean
borderNumber
borderColorString
borderStyleString
colorString
cornerRadiusNumber
disabledBoolean
elObject
ellipsizeString
elStyleString
fontFileString
heightNumber
isVisibleBoolean
italicBoolean
leftNumber
marginsList
opacityNumber
optionsString
paddingList
parentObject
positionObject
rotationNumber
textString
textColorString
textSizeNumber
textStyleString
topNumber
typeString
underlineBoolean
variantString
visibilityString
widthNumber

Methods

The following methods are available on the Text object:

getHtml() → String
getPosition( options ) → Object
gone()
hide()
setScale( x, y )
show()