Fullcalendar 时间线周视图事件结束不起作用

时间:2021-07-20 04:53:18

标签: javascript html fullcalendar fullcalendar-scheduler fullcalendar-5

这是我的日历初始化代码,使用 V5.8.0

var calendarEl = document.getElementById(id);

calendar = new FullCalendar.Calendar(calendarEl, {
  schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
  headerToolbar: {
    left: 'today prev,next',
    center: 'title',
    right: 'resourceTimelineWeek'
  },
  aspectRatio: 1.8,
  initialView: options.defaultView || 'resourceTimelineWeek',
  views: {
      resourceTimelineWeek: {
    slotDuration: '12:00',
    slotLabelInterval: '12:00',
    slotLabelFormat: ['dddd', 'A']
      }
  },
  resourceGroupField: options.resourceGroupField,
  resources: options.resources
 });

这是我的活动数据

var test = [
            {
                "id":123,
                "resourceId":"jo_1",
                "start":"2000-05-02T00:00:00",
                "end":"2000-05-04T23:00:00",
                "title":"DJO",
                "backgroundColor": "white",
                "textColor": "black",
                "borderColor": "#cecede"
            }
            ];

当活动添加到日历时,活动结束似乎不起作用,我应该如何更改?

enter image description here

0 个答案:

没有答案