[ALOY-128] Ti.UI.currentTab undefined in controller
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-30T06:34:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Runtime |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Tony Lukasavage |
Created | 2012-07-26T07:51:25.000+0000 |
Updated | 2015-07-30T23:53:06.000+0000 |
Description
From github issue: https://github.com/appcelerator/alloy/issues/29
Another question, I use html code below to implement a TabGroup, and history is another controller, but in history controller, Titanium.UI.currentTab doesn't work, it just be
undefined
.
<TabGroup>
<Tab id="tabHistory">
<View require="history" id="history"></View>
</Tab>
</TabGroup>
I need to investigate. I'm not sure how this works in TI API. There are other ways to get active tabs that do not rely on the static var. Do we know if this is an Alloy issue?
It's possible this is a context issue Alloy runs and generates single context apps.
Ti.UI.currentTab
is no valid in single context applicationsThis is not clearly documented. Please add to the documentation.