LoneSurvivor
2016-04-15 18:58:49 UTC
Hi everybody,
is it possible, to pass or use another object from outside inside of the
converter-method used in a singlevalue-binding?
For e.g. I have this code:
var someObjectFromOutside = new CoolObject();
var lblInfo = new qx.ui.basic.Label();
this.bind("propertyObject.intValue", lblInfo, "value", {
converter: function (data) {
return someObjectFromOutside.method(data);
}
});
I'd like to manipulate the data-value by using the method of an an external
object from outside instead of creating and destoying it every time inside
the converter is called.
Is that possible and if, how can it be done?
Thank you all and greetings
LoneSurvivor
--
View this message in context: http://qooxdoo.678.n2.nabble.com/Is-it-possible-to-add-another-object-to-the-converter-for-a-singlevalue-binding-tp7588266.html
Sent from the qooxdoo mailing list archive at Nabble.com.
is it possible, to pass or use another object from outside inside of the
converter-method used in a singlevalue-binding?
For e.g. I have this code:
var someObjectFromOutside = new CoolObject();
var lblInfo = new qx.ui.basic.Label();
this.bind("propertyObject.intValue", lblInfo, "value", {
converter: function (data) {
return someObjectFromOutside.method(data);
}
});
I'd like to manipulate the data-value by using the method of an an external
object from outside instead of creating and destoying it every time inside
the converter is called.
Is that possible and if, how can it be done?
Thank you all and greetings
LoneSurvivor
--
View this message in context: http://qooxdoo.678.n2.nabble.com/Is-it-possible-to-add-another-object-to-the-converter-for-a-singlevalue-binding-tp7588266.html
Sent from the qooxdoo mailing list archive at Nabble.com.