Global context / switching windows?
I have a series of windows in a TabGroup. From within one of the windows I'd like to switch to another window.
That is: I have app.js where the tabgroup is defined. One of the windows is implemented in login.js where the user can provide their username/password and login. I'd like to switch from login.js to the main window (implemented in main.js). I don't seem to have access to the variables defined in app.js .
What's the general pattern for doing this?
1 Answer
-
Hello,
I don't know whether this will help you, but if 1 window = 1 tab in your app, you can always use something like 'tabGroup.setActiveTab(x)' where x is the number of the tab you want to activate.
Best regards,
Laurent