Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to change tabbars selection dynamically.

Hello,

I have added two tab bars in navigation area and toolbar area

but I want to change it, selected and unselected by code without clicking on that particular tabbed bar how it is possible?

— asked April 3rd 2010 by vikas khairnar
  • tabbedbar
0 Comments

1 Answer

  • Use tabGroup.setActiveTab(x);

    where tabGroup is the name of your tab group and x is the index (numbers start at 0) of the tab you want to change to.

    so if you wanted to go to the first tab then you would do:

    tabGroup.setActiveTab(0);
    
    — answered April 3rd 2010 by Steve Burtenshaw
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.