Calendar component disable click on week and day

Hello, I use the Calendar component, but I want to disable clicking on day or week.
Is there a proper way of doing this?
I use it, as a month calendar.

Thank you in advance.


Add empty DateClick and WeekClick listeners to override default implementation and disable corresponding clicks:

calendar.addDateClickListener(__ -> {});
calendar.addWeekClickListener(__ -> {});