Add textfield test page.

This commit is contained in:
Vasil Chimev
2015-07-03 11:10:01 +03:00
parent e6f02b495a
commit 542704cd78
3 changed files with 19 additions and 0 deletions

View 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;
}

View File

@@ -0,0 +1,6 @@
<Page loaded="pageLoaded">
<StackLayout orientation="vertical">
<TextField id="textField" text="{{ textProperty }}" />
<TextField id="textFieldSecured" text="{{ textProperty }}" />
</StackLayout>
</Page>