1 | import { TextBase } from '../text-base';
|
2 | import { Color } from '../../color';
|
3 | import { FormattedString } from '../text-base/formatted-string';
|
4 | import { Style } from '../styling/style';
|
5 | import { Property, CssProperty } from '../core/properties';
|
6 | import { CoreTypes } from '../../core-types';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export class EditableTextBase extends TextBase {
|
12 | public static blurEvent: string;
|
13 | public static focusEvent: string;
|
14 | public static textChangeEvent: string;
|
15 |
|
16 | |
17 |
|
18 |
|
19 | keyboardType: CoreTypes.KeyboardInputType;
|
20 |
|
21 | |
22 |
|
23 |
|
24 | returnKeyType: CoreTypes.ReturnKeyButtonType;
|
25 |
|
26 | |
27 |
|
28 |
|
29 | updateTextTrigger: CoreTypes.UpdateTextTriggerType;
|
30 |
|
31 | |
32 |
|
33 |
|
34 | autocapitalizationType: CoreTypes.AutocapitalizationInputType;
|
35 |
|
36 | |
37 |
|
38 |
|
39 | autofillType: CoreTypes.AutofillType;
|
40 |
|
41 | |
42 |
|
43 |
|
44 | editable: boolean;
|
45 |
|
46 | |
47 |
|
48 |
|
49 | autocorrect: boolean;
|
50 |
|
51 | |
52 |
|
53 |
|
54 | hint: string;
|
55 |
|
56 | |
57 |
|
58 |
|
59 | maxLength: number;
|
60 |
|
61 | |
62 |
|
63 |
|
64 |
|
65 | valueFormatter: (value: string) => string;
|
66 |
|
67 | |
68 |
|
69 |
|
70 | dismissSoftInput(): void;
|
71 |
|
72 |
|
73 | |
74 |
|
75 |
|
76 | public _setInputType(inputType: number): void;
|
77 |
|
78 |
|
79 | |
80 |
|
81 |
|
82 | public setSelection(start: number, stop?: number);
|
83 | }
|
84 |
|
85 | export const keyboardTypeProperty: Property<EditableTextBase, CoreTypes.KeyboardInputType>;
|
86 | export const returnKeyTypeProperty: Property<EditableTextBase, CoreTypes.ReturnKeyButtonType>;
|
87 | export const editableProperty: Property<EditableTextBase, boolean>;
|
88 | export const updateTextTriggerProperty: Property<EditableTextBase, CoreTypes.UpdateTextTriggerType>;
|
89 | export const autocapitalizationTypeProperty: Property<EditableTextBase, CoreTypes.AutocapitalizationInputType>;
|
90 | export const autocorrectProperty: Property<EditableTextBase, boolean>;
|
91 | export const hintProperty: Property<EditableTextBase, string>;
|
92 | export const placeholderColorProperty: CssProperty<Style, Color>;
|
93 | export const maxLengthProperty: Property<EditableTextBase, number>;
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 | export function _updateCharactersInRangeReplacementString(formattedText: FormattedString, rangeLocation: number, rangeLength: number, replacementString: string): void;
|
100 |
|