Span | API - NativeScript

A class used to create a single part of formatted string with a common text properties.

Summary

Constructors

constructor

Properties

backgroundColor

Gets or sets the font background color of the span.

color

Gets or sets the font foreground color of the span.

fontFamily

Gets or sets the font family of the span.

fontSize

Gets or sets the font size of the span.

fontStyle

Gets or sets the font style of the span.

fontWeight

fontWeight: FontWeightType

Gets or sets the font weight of the span.

iosAccessibilityAdjustsFontSize

iosAccessibilityAdjustsFontSize: boolean

Defines whether accessibility font scale should affect font size.

iosAccessibilityMaxFontScale

iosAccessibilityMaxFontScale: number

Gets or sets the maximum accessibility font scale.

iosAccessibilityMinFontScale

iosAccessibilityMinFontScale: number

Gets or sets the minimum accessibility font scale.

Gets if the span is tappable or not.

text

Gets or sets the text for the span.

textDecoration

Gets or sets text decorations for the span.

String value used when hooking to linkTap event.

Previous
Slider

Next
StackLayout