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.
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:
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.