Reputation: 19418
How can I close the TabGroup within one of its tab ?
I want to close the tabGroup on a button click (Log out button) and want to display a window without the tab group. I know how to display a window but could find how to close tab group ?
I think, to hide tab group is not proper way. Also on another button (Login button) I am creating the tab group so...
Any suggestions ?
Thanks...
Upvotes: 3
Views: 2856
Reputation: 8856
Just do this:
TabGroup.close();
Put your tabgroup name instead of TabGroup.
EDIT:
If you want to access your tab grop through out the app do this in your app.js file:
Ti.App.customTabGroup = customTabGroup;
and close the tabgroup like this:
Ti.App.customTabGroup.close();
Upvotes: 10