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

Feature Request: Add day-of-week HTML5 tag to calendar #173

Closed
johnnyshields opened this Issue Nov 10, 2013 · 4 comments

Comments

Projects
None yet
2 participants
@johnnyshields
Copy link
Contributor

johnnyshields commented Nov 10, 2013

Currently the calendar has "data-date" tags with the day of the month. It would be nice if there were "data-day" (or "data-dayofweek") which had 0=sun, 1=mon, ... 6=sat on each calendar day cell. This would help with add CSS themes to the calendar.

Some background: in Japan where we have our product, all our customers want to see Sunday in red and Saturday in blue. I would implement this as custom CSS.

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Nov 12, 2013

Yes, it makes sense and we will add that.
You can currently style the day of weeks with the nth-child pseudo class (if firstDay is Sunday):

.dw-cal-day:nth-child(1) { color: red; } /*
.dw-cal-day:nth-child(7) { color: blue; }

@johnnyshields

This comment has been minimized.

Copy link
Contributor

johnnyshields commented Nov 12, 2013

Thanks!

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Nov 15, 2013

Added (will be released in 2.8.3)

@dioslaska dioslaska closed this Nov 15, 2013

@johnnyshields

This comment has been minimized.

Copy link
Contributor

johnnyshields commented Nov 15, 2013

acidb are rockstars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment