Non-Working hours support


I want to specify a set of non working hours of day which may vary on day-to-day bases. Like, (1pm - 3pm AND 10am - 11am)

And user should not be allowed to create events in those non-working hours as well as, those hours in calendar should be displayed in different colors.

Any pointer about how to achive will be helpful.



there is onEventCreated event. It occurs after event is created. So, you can check the start_date and end_date properties and delete the new event (scheduler.deleteEvent(event_id)) if it is necessary.

var event = scheduler.getEvent(id)
var start = event.start_date;

var end= event.end_date;

/your code here/