Export to GitHub

bindage-tools - issue #19

Custom property for component styles


Posted on Oct 5, 2011 by Happy Dog

To support use cases like:

Bind.fromProperty(model, 'someProperty') .convert(somePropertyToBackgroundColor) .toProperty(comp, style('backgroundColor'));

Comment #1

Posted on Oct 26, 2011 by Happy Dog

Pushed 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 Dog

Also 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 Giraffe

I'll test it as soon as possible and let you know...

Thanks in advance

Bruno

Comment #5

Posted on Jan 3, 2012 by Happy Dog

ping

Comment #6

Posted on Jan 19, 2012 by Happy Dog

ping

Comment #7

Posted on Jan 26, 2012 by Happy Dog

Closing as Fixed

Status: Fixed

Labels:
Type-Enhancement Priority-Medium Milestone-0.0.6