Hi Fritz, using this.fireEvent('close') is perfectly fine. The TabView doesn't care if the event was originally triggered by a button click or not. It's a simple event without any data so there won't be any side effects.
Regards, Daniel On 27.03.2015 12:59, Fritz Zaucker wrote: > Hi, > > how can I close a qx.ui.tabview.Page programmatically from the page itself? > > - this.fireEvent('close') > > seems to work, but it also seems like a hack and I am not sure if it has > side effects I don't see. > > - this.getChildControl('button').fireDataEvent('close', this) > > seems to work as well, same questions as above. Which one of those two > would be more appropriate? > > - this.getChildControl('button').getChildControl('close-button').execute() > > would seem appropriate for me, but does not work (no error, but the page > isn't removed). > > > Thanks, > Fritz (somewhat confused) > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel