Our powerful JS Calendar component

Post by alexandru_tess »

How to apply a class to selected day in month/week view? Now it's highlighted just the 'today' day.

Post by Animal »

This would be a feature request to add a certain class name to the cell which encapsulates the Calendar's current date.


Post by Animal »

But you can use the Calendar's dateChange event.

It is passed the old and new date so you can querySelector to find the cell for the old date, remove the class and querySelector to find the cell for the new date and add the class.

Post by Animal »

Obviously, that won't work for hidden views which are "stranded" displaying another date. You'd probably have to refine that solution to update on activeItemChange

Post by Animal »

This feature will be in the next patch release:

Screenshot 2023-09-21 at 11.56.40.png
Screenshot 2023-09-21 at 11.56.40.png (55.92 KiB) Viewed 106 times

Post Reply