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

Custom classes for each date #31

Open
stokske opened this issue Oct 31, 2013 · 0 comments
Open

Custom classes for each date #31

stokske opened this issue Oct 31, 2013 · 0 comments

Comments

@stokske
Copy link

stokske commented Oct 31, 2013

Is there a possiblity to assign a classname to each different date?

Currently i have two dates selected, but i want them both to have another classname, the first one 'blue' and the second one 'red'. Anybody a suggestion? Below my current code. Here i try to give the selected and the not selected dates another classname, but even that doesn't seem to work...

        onRenderCell: function (element, date) {
            if (date.selected == true) {
                return { className: "red" };
            } else {
                return { className: "blue" };
            }
        }
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