a

Monday, 10 August 2015

Pass Context Between Windows using Alloy Controller



Solution

function openWindow () {

var win2 = Alloy.createController('win2', {foobar: 42}).getView();
win2.open();
}
For Alloy projects, you can also pass in context with the Alloy.createController method and retrieve it in the controller code.
var args = arguments[0] || {};
$.label.text = args.foobar;

No comments:

Post a Comment