vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
964 stars 82 forks source link

Is it possible to have ranges of visible slots? #213

Open josehernandezv opened 6 months ago

josehernandezv commented 6 months ago

This is my use case, right now I am using slotMinTime and slotMaxTime and it works fine but I don't want to show that huge gap of empty slots in the middle, is there a way to hide those slots? A way to pass a range of slots instead of just one min and max or maybe hide those with CSS

Screenshot 2023-12-27 at 10 51 22
vkurko commented 6 months ago

Unfortunately, there is no such option right now. And it can't be done with CSS, because the event placement algorithm doesn't support this case. Do you know examples of something similar in other calendars?

josehernandezv commented 6 months ago

Not really, I was looking if it could be done with FullCalendar but I couldn't find an option there either. Anyway, thank you for the quick reply and the awesome library.