Titanium Community Questions & Answer Archive

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

add Tab Group to Navigation Group ???

Hi guys,

adding windows to Navigation Group object is ok, and each window provide back button to the window that open it.

how can i add Tab Group object to the Navigation Group directly or indirectly by opening it in a window and (provide back button) to the window that opened it.

Tab Group when opened hide the navigation back button.

— asked August 27th 2010 by mostafa farghaly
  • navigation
  • tab
  • window
1 Comment
  • I'd like to know the answer as well.

    — commented April 15th 2011 by Joe iEntry

1 Answer

  • Add Button to Tab Group Toolbar/Navbar

    This may be an alternative. The code:

    var btnEdit = Ti.UI.createButton({
        systemButton: Ti.UI.iPhone.SystemButton.EDIT
    });
    btnEdit.addEventListener('click',function(e){
        // button was clicked
    });
    tabWin.rightNavButton = btnEdit;
    

    You can also add a left button by doing:

    tabWin.leftNavButton = btnEdit;
    

    Reading these two questions: one and two helped me figure this out.

    The buttons will then display like:

    http://i.imgur.com/EfrO4.png

    Note that this works for iPhones, not just iPads (haven't tested on Android). All the button options are listed here. Also, note that you can do similar things with the icons on the tab bar using these button styles.

    — answered April 15th 2011 by Joe iEntry
    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.