How do I navigate to another tab window programmatically?
Hi
Lets say I have 3 tabs and 3 windows.
How do I programmatically navigate from one tab window to another without create new windows like
var win = Titanium.UI.createWindow() function and then open it?
Thanks!
6 Answers
-
Assumming that you've already created the windows and added them to the tab group then you can use
tabGroup.setActiveTab(tabGroup.tabs[1])
-
Assumming that you've already created the windows and added them to the tab group then you can use
tabGroup.setActiveTab(tabGroup.tabs[1])
-
Tried but doesn't seem to work. I did it but it doesn't do anything..
There were no errors but it did not navigate to another window…
Did I do something wrong?
-
I am having a similar issue, could it possibly be to do with Android, as several features dont work in Android, can we confirm whether this is right or not. Or did you manage to solve it?
-
This worked for me with Titanium SDK 1.7.5 on an iPhone. However, this method does not seem to be listed in the current API documentation under Titanium.UI.
-
I tried but it doesn't do anything. There were no errors but it just does not have a response.
I am using Titanium SDK 1.0. Does it make a difference?