forum

Home / DeveloperSection / Forums / Issue with open tab group in titanium

Issue with open tab group in titanium

Anonymous User 2010 24-Nov-2014

I have 4 tabs in a tab group. The tab transition on click of tab names is working fine. But I need to open tab2 from tab3 on click of button event in tab3. How can I do that.

Sample code,

<Alloy>
<Tab id="one">
    <Window class="container">
        <Label>This is the Home View</Label>
    </Window>
</Tab>
<Tab id="two">
    <Window class="container">
        <Label>This is the second View</Label>
    </Window>
</Tab>
<Tab id="three">
    <Window class="container">
        <Button onClick="saveLang">Proceed</Button>
    </Window>
</Tab>
 
</Alloy>

Controller:

function saveLang()
{
// How can we open only tab2 here
// I tried open index, the loading time taking long and also it is opening tab1 But I need to open tab2 for this event
}

 


Updated on 25-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By