-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vasil Chimev
authored and
Vasil Chimev
committed
Jul 3, 2015
1 parent
e6f02b4
commit 542704c
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Page loaded="pageLoaded"> | ||
<StackLayout orientation="vertical"> | ||
<TextField id="textField" text="{{ textProperty }}" /> | ||
<TextField id="textFieldSecured" text="{{ textProperty }}" /> | ||
</StackLayout> | ||
</Page> |