Formatted String
NativeScript has a special class called FormattedString
to support various text transformations and decorations. The FormattedString
class can be used with all text-related components like Label
, TextView
, TextField
and even Button
.
Usage
Properties
Name | Type | Description |
---|---|---|
spans |
ObservableArray<Span> |
An observable collection of Span objects used to define common text properties. |
API References
Name | Type | API Reference Link |
---|---|---|
tns-core-modules/text/formatted-string | Module |
|
Span | Module |
|
ViewBase | Class |