Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (createtabgroup)
Viewing all articles
Browse latest Browse all 8

Changed Tabs in other .js files...

$
0
0

Hey all...

in my app.js file I define var tabGroup = Titanium.UI.createTabGroup(); and 4 tabs

var infoTab = Titanium.UI.createTab({
icon:'KS_nav_views.png', title:'PTO Info', window:winInfo //window:windb });

var settingsTab = Titanium.UI.createTab({
icon:'KS_nav_ui.png', title:'Settings', window:win3 //window:windb });

tabGroup.addTab(infoTab); tabGroup.addTab(settingsTab);

What happens is on the infoTab I check if it's the first time the app is used if not I want to switch to the settingsTab. However, since the TabControl is defined in app.js and infoTab redirects to another .js file how do I pick to the defined tabs from the page?

Thank you again...


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>