Re: [qooxdoo-devel] Is it possible to add another object to the converter for a singlevalue-binding?

2016-04-15 Thread LoneSurvivor
mentally which updates the formatted value in the bound label. If anybody knows a better way, please let me know. Thank you again and have a good night LoneSurvivor -- View this message in context: http://qooxdoo.678.n2.nabble.com/Is-it-possible-to-add-another-object-to-the-converter-for-a-singl

Re: [qooxdoo-devel] Is it possible to add another object to the converter for a singlevalue-binding?

2016-04-15 Thread LoneSurvivor
Okay, there is at least one more fallacy. If I add a method like the following to the DateWrapper to increase the date by x days, the label-binding wouldn't call the converter because the wrong key is listened. But if I am setting the binding-key to gameData.date.date, the converter would run but

Re: [qooxdoo-devel] Is it possible to add another object to the converter for a singlevalue-binding?

2016-04-15 Thread LoneSurvivor
While writing the post, I got an idea: would it be a proper way, to create a wrapping class for the value to bind which contains the method so it can be called in converter? My Real-World-example which is working (with Date instead of int, sorry for the confusion):

[qooxdoo-devel] Is it possible to add another object to the converter for a singlevalue-binding?

2016-04-15 Thread LoneSurvivor
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 a

Re: [qooxdoo-devel] Attaching a custom event to an existing widget?

2016-01-07 Thread LoneSurvivor
ion(data) { return "" + data; } It must be "converter" or else the function will not be called. But once again: thank you very much! Greetings LoneSurvivor -- View this message in context: http://qooxdoo.678.n2.nabble.com/Attaching-a-custom-event-to-an-existing

Re: [qooxdoo-devel] Attaching a custom event to an existing widget?

2016-01-06 Thread LoneSurvivor
must be updated for the changed value. So should I bind those labels all together with a label added to the root-widget that gets updated by the initial changeEvent and the rest get's automatically updated by the bindings? Thank you in advance LoneSurvivor -- View this message in context: http

Re: [qooxdoo-devel] Attaching a custom event to an existing widget?

2016-01-04 Thread LoneSurvivor
Or is it possible to bind a widget to a property like a number? In the examples on this page (http://manual.qooxdoo.org/current/pages/data_binding/single_value_binding.html) are between widgets only. -- View this message in context: