Hi,
> The single value binding does also have for such a use case a solution.
> You can use custom converters for the bindings. 
>
> var sl = new qx.ui.form.Slider();
> sl.setWidth(200);
> this.getRoot().add(sl); 
> var sp = new qx.ui.form.Spinner(0, 10, 20); 
> this.getRoot().add(sp, {top: 30}); 
>
> sl.bind("value", sp, "enabled", {converter: function(data) {
>   return data >= 90;
> }}); 
>   
Thanks, it worked :)

I was trying with listeners and with listeners, if the initial values 
are such that a dependent widget should be changed, it didn't work and I 
had to send a manual data event. With binding it works fine the first 
time the widgets are created with certain values.

cheers,
skar.

-- 
--
The life so short, the craft so long to learn. 


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to