[feat]Add valid date range to fullcalendar

This commit is contained in:
Jimmy 2021-04-30 19:06:50 +08:00
parent 5197ddbe24
commit 8aaabe4435
No known key found for this signature in database
GPG key ID: FAE75C760A4A5CC6
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,10 @@ $( document ).ready(function() {
allDaySlot: false,
slotMinTime: fullcalData.data('startHour') + ':00:00',
slotMaxTime: fullcalData.data('endHour') + ':00:00',
validRange: {
start: fullcalData.data('startDate'),
end: fullcalData.data('endDate')
},
timeZone: 'UTC', // TODO: Events are stored in conference's timezone implicitly (UTC+0) in the database
initialDate: fullcalData.data('day'),
initialView: 'resourceTimeGridDay',