Can we block specific days (eg.: Mondays,Wednesdays and Fridays for some Events) while enabling them on other days of the week (eg.:Tuesdays,Thursdays and Saturdays)?
- We see that weekends can be turned off in the Calendar configuration. But we need more flexibility like blocking public holidays or alternate days.
I tried this script,but instead of blocking displayed days it block all the days.
We expect only to block (‘Monday’,’Wednesday’,’Friday’)
function(options) {
options.eventConstraint = "businessHours";
options.selectConstraint = "businessHours";
options.businessHours = [{
daysOfWeek: [ 2, 6, 4 ],
startTime: '10:00:00',
endTime: '13:00:00'
}]
return options;
}