vkurko / calendar

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

Can I restrict the start and end date of a view #141

Open ukdesignservices opened 1 year ago

ukdesignservices commented 1 year ago

Is it possible to set a fixed range for a view, for example between Jun 20th and August 1st and disable the month navigation outside this range? Many thanks

vkurko commented 1 year ago

I think you need a setting similar to validRange, which is not implemented in the Event Calendar. I will leave this ticket open until it is implemented. Unfortunately, I can't give an approximate date.

izu12ki commented 4 months ago

Sorry for shitposting. I really wish the validRange to be implemented.

More specifically, I want the normal user to be able to choose only a specific time range but paid users can choose more broader time range.

Are there any ways to do this other than setting non-existent events for normal users so that they cannot select those time ranges?

vkurko commented 4 months ago

I really wish the validRange to be implemented.

It seems to me that you need something different, because validRange would limit the navigation to days, but will not affect the displayed time within a single day.

izu12ki commented 4 months ago

Sorry, you're right. It seems what I'm trying to do should be done with something else but not with a calendar.