To support use cases like:
Bind.fromProperty(model, 'someProperty') .convert(somePropertyToBackgroundColor) .toProperty(comp, style('backgroundColor'));
Comment #1
Posted on Oct 26, 2011 by Happy DogPushed fix in changeset 44e71372ba20.
Note that I'm a little constrained in that properties watched with the style property will not fire property changes, so it's best to use the style property only as the target of your bindings, and not as a binding source.
Bruno, I'm assuming it's you who starred this issue since you brought it up on the wiki. Would you care to pull the latest changes from Mercurial, and see if the code satisfies your use case?
Comment #2
Posted on Oct 26, 2011 by Happy DogAlso pushed changeset db5e998bb474, which adds disclaimer against use of style(name) for binding sources (vs binding destinations).
Comment #3
Posted on Oct 26, 2011 by Happy Dog(No comment was entered for this change.)
Comment #4
Posted on Oct 26, 2011 by Grumpy GiraffeI'll test it as soon as possible and let you know...
Thanks in advance
Bruno
Comment #5
Posted on Jan 3, 2012 by Happy Dogping
Comment #6
Posted on Jan 19, 2012 by Happy Dogping
Comment #7
Posted on Jan 26, 2012 by Happy DogClosing as Fixed
Status: Fixed
Labels:
Type-Enhancement
Priority-Medium
Milestone-0.0.6