Fullcalendar - disable overlapping events

I have a calendar that displays appointments for a specific person. How to set fullcalendar so that events in the calendar cannot overlap with each other?

thanks

+4
source share
4 answers
var events = $('#calendar').fullCalendar('clientEvents'); // start-time in between any of the events if(eventStartDay > events[i].start && eventStartDay < events[i].end){ return true; } //end-time in between any of the events if(eventEndDay > events[i].start && eventEndDay < events[i].end){ return true; } //any of the events in between/on the start-time and end-time if(eventStartDay <= events[i].start && eventEndDay >= events[i].end){ return true; } 
+2
source

This option has been enabled since version 2.20

 eventOverlap: false 

http://fullcalendar.io/docs/event_ui/eventOverlap/

+3
source

When selected, you can disable the overlap:

 selectOverlap: false 

When you drag & drop:

 eventOverlap: false 
+1
source

I think the easiest way to achieve this is to manipulate the source of the events. That is, if you use a source that can be changed.

0
source

All Articles