1 | import { Color } from '../../color';
|
2 | import { ViewBase } from '../core/view-base';
|
3 | import { FontStyle, FontWeight } from '../styling/font';
|
4 | import { CoreTypes } from '../../core-types';
|
5 |
|
6 | /**
|
7 | * A class used to create a single part of formatted string with a common text properties.
|
8 | */
|
9 | export class Span extends ViewBase {
|
10 | /**
|
11 | * Gets or sets the font family of the span.
|
12 | */
|
13 | public fontFamily: string;
|
14 |
|
15 | /**
|
16 | * Gets or sets the font size of the span.
|
17 | */
|
18 | public fontSize: number;
|
19 |
|
20 | /**
|
21 | * Gets or sets the font style of the span.
|
22 | */
|
23 | public fontStyle: FontStyle;
|
24 |
|
25 | /**
|
26 | * Gets or sets the font weight of the span.
|
27 | */
|
28 | public fontWeight: FontWeight;
|
29 |
|
30 | /**
|
31 | * Gets or sets text decorations for the span.
|
32 | */
|
33 | public textDecoration: CoreTypes.TextDecorationType;
|
34 |
|
35 | /**
|
36 | * Gets or sets the font foreground color of the span.
|
37 | */
|
38 | public color: Color;
|
39 |
|
40 | /**
|
41 | * Gets or sets the font background color of the span.
|
42 | */
|
43 | public backgroundColor: Color;
|
44 |
|
45 | /**
|
46 | * Gets or sets the text for the span.
|
47 | */
|
48 | public text: string;
|
49 | /**
|
50 | * String value used when hooking to linkTap event.
|
51 | */
|
52 | public static linkTapEvent: string;
|
53 |
|
54 | /**
|
55 | * Gets if the span is tappable or not.
|
56 | */
|
57 | public readonly tappable: boolean;
|
58 |
|
59 | //@private
|
60 | /**
|
61 | * @private
|
62 | */
|
63 | _setTextInternal(value: string): void;
|
64 | //@endprivate
|
65 | }
|