Added highlighting for events that fall under the today's day or month
This commit is contained in:
parent
a936de4285
commit
3d19819fb2
@ -27,6 +27,10 @@ export default class GroupDayRenderer extends GroupRenderer {
|
|||||||
html.textContent = dayInMonth.toString();
|
html.textContent = dayInMonth.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (DayGrouping.isToday(eventDate)) {
|
||||||
|
html.className += " highlighted";
|
||||||
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,6 +32,10 @@ export default class GroupMonthRenderer extends GroupRenderer {
|
|||||||
.slice(0, 3);
|
.slice(0, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (MonthGrouping.isThisMonth(eventDate)) {
|
||||||
|
html.className += " highlighted";
|
||||||
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user