Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2982] TabGroup - Click Event

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2012-07-02T10:12:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsiphone
ReporterSteven Marshall
AssigneeMauro Parra-Miranda
Created2012-06-29T01:16:17.000+0000
Updated2016-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.

Comments

  1. Anirudh Nagesh 2012-07-02

  2. Anirudh Nagesh 2012-07-02

  3. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source