Hi Luke,
> thanks for help. I also thought about the possibility to change the view
> back to the unsaved one, but I have a quite big pages in tabview and this
> solution would create undesired delay (at least at some points). Your
> solution with the "skip changes" button sounds interesting... But I don't
> know how to disable click on everything except from the button. Could you
> show some snippet of code?
>
> Just to explain more, my tabview is inside window, and I need to catch also
> window.close() events. And if there are unsaved data provide the same
> confirmation dialog. Also there is a navigation to select different
> tabviews, and there should be also same confirm dialog.
>
Try this in the playground. Only the current tab is enabled and all
other tabs are disabled. Use this in the event listener for any event
which indicates change in a user input in the current tab.
> var approot = this.getRoot();
> var tv = new qx.ui.tabview.TabView();
> var tbs = [];
> for(i=0;i<5;i++){
> var tb = new qx.ui.tabview.Page("page"+(i+1)).set({enabled: false});
> tv.add(tb);
> }
> tv.getSelection()[0].setEnabled(true);
> approot.add(tv);
>
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel