TextView

A widget to display a text. For images, use ImageView.

Import this type with “”

Type: string, supported values: left, right, center, default: left

The horizontal alignment of the text.

lineSpacing

Type: number, default: 1.0

The amount of space between each line of text. The lineSpacing property is a factor with a default value of .

markupEnabled

Type: boolean

Allows for a subset of HTML tags in the text. Supported tags are: a, del, ins, b, i, strong, , big, small, br. All tags must be closed (e.g. use <br/> instead of <br>). Nesting tags is currently not supported.This property can only be set on widget creation. Once set, it cannot be changed anymore.

maxLines

|Type: number|null, default: null

Limit the number of lines to be displayed to the given maximum. disables this limit.

Android

Whether the text can be selected or not. Currently only support on Android.

text

Type: string

The text to display.

textColor

Type:

The color of the text.

alignmentChanged

Fired when the property has changed.

Event Parameters

  • value: string The new value of .

Fired when the lineSpacing property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: number The new value of lineSpacing.

maxLinesChanged

Event Parameters

  • value: number|null The new value of .

selectableChanged

Fired when the property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: boolean The new value of .

textChanged

Fired when the property has changed.

Event Parameters

  • value: string The new value of .

Fired when the textColor property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: Color The new value of .