UNPKG

1.22 kBTypeScriptView Raw
1import { EditableTextBase } from '../editable-text-base';
2import { Property } from '../core/properties';
3
4export const secureProperty: Property<TextField, boolean>;
5
6/**
7 * Represents an editable text field.
8 */
9export class TextField extends EditableTextBase {
10 public static returnPressEvent: string;
11
12 /**
13 * Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS.
14 */
15 android: any /* android.widget.EditText */;
16
17 /**
18 * Gets the native iOS [UITextField](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/) that represents the user interface for this component. Valid only when running on iOS.
19 */
20 ios: any /* UITextField */;
21
22 /**
23 * Gets or sets if a text field is for password entry.
24 */
25 secure: boolean;
26
27 /**
28 * Gets or sets if a text field should dismiss on return.
29 */
30 closeOnReturn: boolean;
31
32 /**
33 * iOS only (to avoid 12+ auto suggested strong password handling)
34 */
35 secureWithoutAutofill: boolean;
36
37 /**
38 * iOS only update placeholder attributed text style
39 */
40 _updateAttributedPlaceholder?(): void;
41}