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;
}});
Best,
Martin
skar wrote:
>
> Hi Martin,
>> var cb = new qx.ui.form.CheckBox("ABC");
>> this.getRoot().add(cb);
>> var sp = new qx.ui.form.Spinner(0, 10, 20);
>> this.getRoot().add(sp, {top: 30});
>>
>> cb.bind("value", sp, "enabled");
>>
> Thanks, that worked great. I also have some cases, where if a slider's
> value is above a value, say 100, some other settings have to be
> disabled. Is there any way to use binding here, or listening for
> changeValue the only way?
>
> 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
>
>
--
View this message in context:
http://n2.nabble.com/help-understanding-data-binding-tp4106591p4112955.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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