【发布时间】:2014-11-05 10:33:59
【问题描述】:
我在一个标签组中有 4 个标签。单击选项卡名称时的选项卡转换工作正常。但是我需要在点击 tab3 中的按钮事件时从 tab3 打开 tab2。我怎样才能做到这一点。
示例代码,
<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>
控制器:
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
}
【问题讨论】:
标签: javascript iphone titanium titanium-mobile titanium-alloy