mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add textfield test page.
This commit is contained in:
11
apps/ui-tests-app/pages/textfield.ts
Normal file
11
apps/ui-tests-app/pages/textfield.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import observable = require("data/observable");
|
||||
|
||||
export function pageLoaded(args) {
|
||||
var page = args.object;
|
||||
var textFieldSecured = page.getViewById("textFieldSecured");
|
||||
textFieldSecured.secure = true;
|
||||
|
||||
var obj = new observable.Observable();
|
||||
obj.set("textProperty", "text");
|
||||
page.bindingContext = obj;
|
||||
}
|
||||
6
apps/ui-tests-app/pages/textfield.xml
Normal file
6
apps/ui-tests-app/pages/textfield.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<Page loaded="pageLoaded">
|
||||
<StackLayout orientation="vertical">
|
||||
<TextField id="textField" text="{{ textProperty }}" />
|
||||
<TextField id="textFieldSecured" text="{{ textProperty }}" />
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user