Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Object Classes and Array of Classes #14

Closed
kbrsh opened this issue Mar 3, 2017 · 0 comments
Closed

Conditional Object Classes and Array of Classes #14

kbrsh opened this issue Mar 3, 2017 · 0 comments
Assignees
Labels

Comments

@kbrsh
Copy link
Owner

kbrsh commented Mar 3, 2017

First, add two forms of adding the class attribute.

Single class:

<h1 class="className"></h1>

Array of Classes:

<h1 class="['className', 'otherClass']"></h1>

Next, add support for a class being a conditional statement in an object:

<h1 class="{className: {{condition}}, otherClass: {{condition}} === false}"></h1>

These objects can also be used in the array of classes.

@kbrsh kbrsh added the feature label Mar 3, 2017
@kbrsh kbrsh self-assigned this Mar 3, 2017
@kbrsh kbrsh closed this as completed in 5208782 Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant