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

classMap function #194

Open
stell opened this issue Oct 24, 2016 · 0 comments
Open

classMap function #194

stell opened this issue Oct 24, 2016 · 0 comments

Comments

@stell
Copy link

stell commented Oct 24, 2016

The classMap function uses a key/value collection of css classes organized by date.
What i would love to do ist use a callback function like blackout uses.
I have a string like "YNNYNYNYNNNNNNNNNNNYYYYNYNYYYNYNYYYYYY".

First "Y" of that String stands for 01-01-2017 and so on. So the callbackfunction should just return a class like "free" if date matches "Y" and "closed" if it matches "N".

I don't see how that can be done with the key/value collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant