Hi,
you don't need to modify the other pages. You could create an extended
TabPage that fires "startEdit" and "stopEdit" events as the user
interacts with it. An (also extended) TabPage could listen for these
events and disable/enable the tab controls accordingly. The only caveat
here is that you have to manipulate each button individually, i.e.:
this.getChildControl("bar").getChildren().forEach(function(button) {
button.setEnabled(false);
});
(where this is the TabView).
Regards,
Daniel
On 25.09.2013 11:44, Micha wrote:
> Hi,
>
> how can I do this:
>
> If a user clicks another tabpage in a tabview and he has changed some data on
> the current page I want to prevent the change to another tabpage, to remind
> him to save the data first.
>
> Somehow I don't see how to implement this.
> Of course I could disable the other tabpage buttons until the data is clean,
> but that means touching the code of the other pages instead of only the
> current page.
>
> thanks for helping,
> Michael
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel