在fullcalendar中呈现不重叠的事件

在fullcalendar中呈现不重叠的事件,fullcalendar,Fullcalendar,我正在使用eventSources在fullcalendar中呈现事件 eventSources = [ {events: Array1, editable: overlap: false }, {events: Array2, overlap: false}]; 有时,Array1和Array2的时间表重叠。但我想优先处理Array 1事件。如果Array1中存在与Array2中的startTime或endTime相同的事件,我只想显示Array1事件。即使我使用'overlap:false

我正在使用eventSources在fullcalendar中呈现事件

eventSources = [ {events: Array1, editable: overlap: false }, {events: Array2, overlap: false}];
有时,Array1和Array2的时间表重叠。但我想优先处理Array 1事件。如果Array1中存在与Array2中的startTime或endTime相同的事件,我只想显示Array1事件。即使我使用'overlap:false'属性,事件也会相互重叠。有人能帮我吗。 是否有方法覆盖可用事件

$('#external-events .fc-event').each(function() {

    // store data so the calendar knows to render an event upon drop
    $(this).data('event', {
        title: $.trim($(this).text()),
        backgroundColor:$.trim($(this).css("background-color")), // use the element's text as the event title
        textColor:$.trim($(this).css("color")), // use the element's text as the event title
        stick: true,// maintain when user navigates (see docs on the renderEvent method),
        overlap:true,
        durationEditable:true,
    });

    // make the event draggable using jQuery UI
    $(this).draggable({
            zIndex: 999,
            revert: true,      // will cause the event to go back to its
            revertDuration: 0  //  original position after the drag
    });

});
您必须添加重叠选项。它将限制事件重叠