We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Often you need to pass a value from one window to the other (e.g. getting the id in a master listview to open the details page of the item.)
In index.js one can easily to this:
Alloy.Globals.UI.openWindow = function(winName, arg) { $.root.activeTab.open(Alloy.createController(winName, arg).getView()); };
In windowsA1.js for instance (passing a value to windowsA2):
function openWinA2(e) { Alloy.Globals.UI.openWindow('windowA2', {nid: "12"}); }
windowsA2.js:
var args = arguments[0] || {}; console.log("args.nid: " + args.nid); //results in "12"
Thanks for this very useful contribution.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Often you need to pass a value from one window to the other (e.g. getting the id in a master listview to open the details page of the item.)
In index.js one can easily to this:
In windowsA1.js for instance (passing a value to windowsA2):
windowsA2.js:
Thanks for this very useful contribution.
The text was updated successfully, but these errors were encountered: