Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to open a TabGroup view

$
0
0

Hi, I need to open a new view when a statement is true, the view is TabGroup based, how does this works?

I want to open home.xml :

<Alloy>
    <TabGroup>
        <Require src="profile"/>    
        <Require src="video"/>  
    </TabGroup>
</Alloy>
When the username and password != null in index.js, the code works only for opening a new window..:
if (Titanium.App.Properties.getString('username') != null && Titanium.App.Properties.getString('password') != null){
    var win2 = Alloy.createController('home').getView();
    win2.open();
}else{
     $.index.open();
}
How can i do this, win2.openTabGroup or something?

Thanks in advance for any help!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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