uvarov-frontend / vanilla-calendar-pro

The Vanilla Calendar Pro is a versatile JavaScript date and time picker component with TypeScript support, making it compatible with any JavaScript frameworks and libraries. It is designed to be lightweight, easy to use, and feature-rich, without relying on external dependencies.
https://vanilla-calendar.pro
Other
482 stars 60 forks source link

Is it possible to hide or disable the weekend cells? #307

Closed andrewdenham closed 1 month ago

andrewdenham commented 1 month ago

Hi,

I'm trying to see if it is possible to hide the weekend cells, so rows of 5 day week (Mon-Fri)?

I found something about visibility.settings.weekend, but this suggests that it only enables or disables the highlighting of those days? Which unless I'm misunderstanding isn't working in the example? I can still hover and select the weekend days?

Thanks

uvarov-frontend commented 1 month ago

The visibility.settings.weekend removes the CSS class from weekends. And that's all. Whatever you want can be done through CSS. Add a display: none property for each 6th and 7th class vanilla-calendar-day.