Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Titanium: How to close TabGroup within its Tab?

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

like image 318
Maulik Avatar asked Dec 05 '25 02:12

Maulik


1 Answers

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();
like image 145
Muhammad Zeeshan Avatar answered Dec 07 '25 18:12

Muhammad Zeeshan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!