Files
Luke Curran 92b5b02bf5 feat(text-field): add closeOnReturn property to avoid auto dismissing… (#8347)
* feat(text-field): add closeOnReturn property to avoid auto dismissing input on return press

* tslint

* Update NS public api

Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
2020-03-20 10:19:53 +02:00

36 lines
1.1 KiB
TypeScript

/**
* Contains the TextField class, which represents an editable single-line box.
* @module "ui/text-field"
*/ /** */
import { EditableTextBase, Property } from "../editable-text-base";
export const secureProperty: Property<TextField, boolean>;
/**
* Represents an editable text field.
*/
export class TextField extends EditableTextBase {
public static returnPressEvent: string;
/**
* 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.
*/
android: any /* android.widget.EditText */;
/**
* 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.
*/
ios: any /* UITextField */;
/**
* Gets or sets if a text field is for password entry.
*/
secure: boolean;
/**
* Gets or sets if a text field should dismiss on return.
*/
closeOnReturn: boolean;
}