[AC-2982] TabGroup - Click Event
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-07-02T10:12:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | iphone |
| Reporter | Steven Marshall |
| Assignee | Mauro Parra-Miranda |
| Created | 2012-06-29T01:16:17.000+0000 |
| Updated | 2016-03-08T07:47:59.000+0000 |
Description
function ApplicationTabGroup(Window) {
//create module instance
var self = Ti.UI.createTabGroup();
//create app tabs
var win1 = new Window('home'),
win2 = new Window('settings');
var tab1 = Ti.UI.createTab({
title: 'home',
icon: '/images/KS_nav_ui.png',
window: win1
});
win1.containingTab = tab1;
var tab2 = Ti.UI.createTab({
title: 'settings',
icon: '/images/KS_nav_views.png',
window: win2
});
win2.containingTab = tab2;
self.addTab(tab1);
self.addTab(tab2);
self.addEventListener('click',function(e){
Ti.API.info("index:"+e.index);
});
return self;
};
module.exports = ApplicationTabGroup;
When I click the tabs, nothing is firing.
Should also work if you are clicking on an active tab too.
DUP issue.