I was playing along with the codepen version of FullCalendar Scheduler
, to test it out if it would suit my needs for a new project, and tried to reduce the slotDuration
option to as low as possible.
$(function() {
$('#calendar').fullCalendar({
defaultView: 'timelineDay',
header: {
left: 'prev,next',
center: 'title',
right: 'timelineDay,timelineWeek,timelineMonth'
},
resourceLabelText: 'Rooms',
resources: 'https://fullcalendar.io/demo-resources.json',
events: [{ id: '1', resourceId: 'a', start: '2018-05-24T06:00:00', end: '2018-05-24T06:04:00', title: 'event 1' }],
slotDuration: "00:01:00"
});
});
This was the code that I played along with. In this version, the slots are being displayed in an hourly interval, instead of the minutely one. It doesn't matter what I change slotDuration
to, if it is below 00:01:30
, it just reverts to an hourly duration.
Is this a bug? The intended use case? Is there any way to reduce the slot duration below the 1 minute 30 seconds treshold? Maybe to a 30 second treshold? If so, how?
I also include the CodePen save if anyone wants to play around with it, maybe a solution comes up.