TabGroup

You must Login before you can answer or comment on any questions.

3 Answers

This is not a question, please provide a question that explains what problem you are having and include supporting information and code so we may help you.

Read using questions and answers to see what you should be providing to maximise your chances of getting an answer.

Supposing you want to put a NavigationGroup inside a tab:

  1. Create a Navigation Group and the window inside it (lets call that window win1)
  2. Create a window to contain the NavigationGroup (lets call that window navWin)
  3. add the NavigationGroup to the navWin: navWin.add(navGroup)
  4. set navWin as window for the tab: tab.window = navWin
  5. create the tabGroup and add all your tabs to it
— answered 10 months ago by Javier Rayon
answer permalink
2 Comments
  • Hi Javier

    You do know that tabGroup windows automatically function as a navGroup for any child windows opened as part of the tabGroup?

    If not - let me know - I will give you some sample code.

    — commented 10 months ago by Malcolm Hollingsworth

  • You're right! I didn't remember :) So, for what matters here, is easier to do

    tab.open(win2);
    Where tab is a tab inside a tabGroup and win2 would be the new window to put in the top of navGorup's windows stack.

    Thanks for the comment.

    — commented 10 months ago by Javier Rayon

Hi Javier

Yes the new windows can be opened by calling the open method of the current tab.

If you have scope to the current tab, then;

tab.open(newWindow, {animated:true});
If not then;
Ti.UI.currentTab.open(newWindow,{animated:true});
More info about tab.open() if you need it.

— answered 10 months ago by Malcolm Hollingsworth
answer permalink
4 Comments
  • Do not forget to mark it - if you think the question has been answered, helps the next person with a similar issue if they know there is already a solution.

    If not - let me know - still happy to assist.

    — commented 10 months ago by Malcolm Hollingsworth

  • Was this any help to you?

    — commented 10 months ago by Malcolm Hollingsworth

  • note that Ti.UI.currentTab only works using multiple javascript contexts created from url windows property (which is not recommended). More info here and here

    — commented 10 months ago by Javier Rayon

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!