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

mark Dates in the past and the future #6

Open
Schrank opened this issue Jan 17, 2012 · 0 comments
Open

mark Dates in the past and the future #6

Schrank opened this issue Jan 17, 2012 · 0 comments

Comments

@Schrank
Copy link

Schrank commented Jan 17, 2012

To style days in the past and the future, I needed classes for it.

Lines 362++

// Today, past and future
if (date.getFullYear() == thisYear && date.getMonth() == thisMonth && day == thisDay) {
cell.addClassName('today')
} else if (date.getFullYear() >= thisYear && date.getMonth() >= thisMonth && day >= thisDay) {
cell.addClassName('futureDay')
} else {
cell.addClassName('pastDay')
}

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