Javascript 要停止拖动的FullCalendar特定事件
我有一些活动不需要拖拉,只需要固定在位置上,有些可以拖拉Javascript 要停止拖动的FullCalendar特定事件,javascript,fullcalendar,fullcalendar-4,Javascript,Fullcalendar,Fullcalendar 4,我有一些活动不需要拖拉,只需要固定在位置上,有些可以拖拉 var calendar = new Calendar(calendarEl, { plugins: ['interaction', 'dayGrid', 'timeGrid', 'list'], header: { left: 'prev,next today', center:
var calendar = new Calendar(calendarEl, {
plugins: ['interaction', 'dayGrid', 'timeGrid', 'list'],
header: {
left: 'prev,next today',
center: 'title',
right: "dayGridMonth,timeGridWeek,timeGridDay"
//right: "dayGridMonth"
},
businessHours: true, // display business hours
editable:false, //switching within calendar would stop
events: AllEvents,
droppable: false, // this allows things to be dropped onto the calendar
})
如果我设置
editable:false
,它将停止拖动所有事件,但我希望仅停止特定事件的拖动。我该怎么做 找到了解决我问题的方法
{
title: 'This must be editable',
start: new Date('11/1/2011'),
editable:true //true or false can set draggable in it
}
以下是解决方案的Url。