我有FullCalendar 3与调度程序插件结合(并且在JQuery 1.11 en jqueryui 1.12上运行,尽管我认为jQuery版本不相关,因为这些版本在jsfiddle中不使用这些版本下面)
当我在日历上拖动事件时,它变得不可见。
我希望它保持可见,如FullCalendar调度程序本身https://fullcalendar.io/scheduler
所示我做了一个jsfiddle来演示
https://jsfiddle.net/q5t43ga1/
滚动至2019年2月24日,凌晨12点观看活动。
html
<div id="calendar"></div>
javascript
$('#calendar').fullCalendar({
defaultView: 'timelineDay', //agendaWeek
locale: 'nl',
timezone: 'local',
themeSystem: 'bootstrap3',
height: 200,
slotDuration: '00:10:00',
nowIndicator: 'true',
minTime: "20:00:00", // this makes the calendar start at 8PM
maxTime: "44:00:00", // this makes the calender end 24 hours later at 8PM ( (8PM => 20) + 24 = 44)
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
editable: true, // enable draggable events
droppable: true, // this allows things to be dropped onto the calendar
eventResize: function(event) { // called when an event (already on the calendar) is resized
},
events: {
events: [
{
title : 'event2',
start : '2019-02-25',
end : '2019-02-27'
}
]
}
})
请参见下面的图片
事件可见
拖动时,事件是看不见的
@louys-patrice-bessette提供的解决方案适合我
.fc-dragging {
display: block !important;
}
谢谢!