data-shareable = 'true'인 경우에만 FullCalendar로 떨어 뜨려야하는 몇 가지 외부 이벤트가 있습니다. data-shareable = 'false'이면 다른 놓은 이벤트와 겹치지 않는 한 이벤트를 삭제할 수 있습니다.이벤트를 FullCalendar로 드래그 할 때 중첩되지 않음
if (this.getAttribute('data-shareable') == 'true') {
$('#calendar').fullCalendar('renderEvent', copiedEventObject, true);
}else{
alert('this is not a shareable resource');
}
이 예제는 jsfiddle입니다.
참고 : '이벤트 2'는 data-shareable = 'false'인 유일한 이벤트이므로 삭제 된 다른 이벤트와 겹치면 삭제해서는 안됩니다.