Closing all windows under a tabGroup - need help
I am using tabGroup as my app's main navigation. In tabGroup(0) I have a process that goes about 5 windows deep. Is there a programmatic way to close all windows in tabGroup(0) and return to the start of tabGroup(0) without using the back button on each window?
Thank you in advance for answers.
2 Answers
-
Accepted Answer
if you keep an array of windows as you add them to the tab, then you can fire an event that loops through the array and closes all the windows
-
Michael
Have a look at custom events. You would need to define one for each window that you would like to close from another context. Note that it would probably be wise to close them in the order that they were opened, but you would have to experiment to find out what works best.
Cheers