Support data-linking directly to class attribute #19

Closed
wants to merge 1 commit into from

2 participants

@fineline

Hi Boris, never done this before so hope it's the right process. I found it frustrating that I couldn't control the presence of a css class on an element from my view model, so I modified the jsviews code to allow this.

class on an element to be controlled by a boolean (or "truthy") source
value, with syntax like:

data-getfrom="class-myclass: [isMyClass]"

@fineline fineline Add class as a target for declaritive binding - allows the presence of a
class on an element to be controlled by a boolean (or "truthy") source
value, with syntax like:
data-getfrom="class-myclass: [isMyClass]"
844bc53
@BorisMoore
Owner

Yes, I agree that binding to class directly is a valuable feature. Not ready to finalize on the design for this yet, since I want to first stabilize some other related aspects. I'll look at this again after that. Thanks for the contribution.

@BorisMoore
Owner

Closing this for now, but linking it to #145

@BorisMoore BorisMoore closed this Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment