mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-09-11 12:10:23 +08:00
future/past classNames on day cells
This commit is contained in:
@@ -388,6 +388,12 @@ function AgendaView(element, calendar, viewName) {
|
||||
'fc-today'
|
||||
);
|
||||
}
|
||||
else if (date < today) {
|
||||
classNames.push('fc-past');
|
||||
}
|
||||
else {
|
||||
classNames.push('fc-future');
|
||||
}
|
||||
|
||||
cellHTML =
|
||||
"<td class='" + classNames.join(' ') + "'>" +
|
||||
|
||||
@@ -266,6 +266,12 @@ function BasicView(element, calendar, viewName) {
|
||||
tm + '-state-highlight'
|
||||
);
|
||||
}
|
||||
else if (date < today) {
|
||||
classNames.push('fc-past');
|
||||
}
|
||||
else {
|
||||
classNames.push('fc-future');
|
||||
}
|
||||
|
||||
html +=
|
||||
"<td" +
|
||||
|
||||
Reference in New Issue
Block a user