SolutionfunctionopenWindow(){var win2 =Alloy.createController('win2', {foobar: 42}).getView();win2.open();}For Alloy projects, you can also pass in contextwith theAlloy.createControllermethod and retrieveit in the controller code.var args = arguments[0] || {};$.label.text = args.foobar;
No comments:
Post a Comment