Fullcalendar timeline week view the event end is not working

Viewed 205

This is my calendar init code,using 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
 });

And this is my event data

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"
            }
            ];

when the event add to the calendar,the end of the event seems not working,what should I change?

enter image description here

0 Answers
Related