mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Update data binding basics test page.
This commit is contained in:
@ -15,8 +15,12 @@ export function createPage() {
|
|||||||
var buttonOneWay = new buttonModule.Button();
|
var buttonOneWay = new buttonModule.Button();
|
||||||
var buttonTwoWay = new buttonModule.Button();
|
var buttonTwoWay = new buttonModule.Button();
|
||||||
|
|
||||||
// OneWay Binding
|
targetOneWay.id = "textFieldOneWay";
|
||||||
|
targetTwoWay.id = "textFieldTwoWay";
|
||||||
|
buttonOneWay.id = "buttonOneWay";
|
||||||
|
buttonTwoWay.id = "buttonTwoWay";
|
||||||
|
|
||||||
|
// OneWay Binding
|
||||||
var bindingOptionOneWay = {
|
var bindingOptionOneWay = {
|
||||||
sourceProperty: "textSource",
|
sourceProperty: "textSource",
|
||||||
targetProperty: "text",
|
targetProperty: "text",
|
||||||
@ -37,7 +41,6 @@ export function createPage() {
|
|||||||
stack.addChild(buttonOneWay);
|
stack.addChild(buttonOneWay);
|
||||||
|
|
||||||
// TwoWay Binding
|
// TwoWay Binding
|
||||||
|
|
||||||
var bindingOptionTwoWay = {
|
var bindingOptionTwoWay = {
|
||||||
sourceProperty: "textSource",
|
sourceProperty: "textSource",
|
||||||
targetProperty: "text",
|
targetProperty: "text",
|
||||||
|
Reference in New Issue
Block a user