JQuery:FullCalendar Plugin: Events are not shown in week view and day view but are shown in month view

前端 未结 3 1833
Happy的楠姐
Happy的楠姐 2021-01-18 21:43

I\'ve the following code to fetch events:

$(\'#calendar\').fullCalendar({
theme: true,
slotMinutes: 10,
header: {
left: \'prev,next today\',
center: \'title\',
right:          


        
3条回答
  •  离开以前
    2021-01-18 22:03

    I ran across this problem too. The fix was to make sure each event returned in the JSON included an "allDay" name/value pair set to false.

    [{'title': 'Successful','allDay': false,'start': 1266398223,'end': 1266398266,'url': '/shlk/cgi-bin/getshlkrunlog.pl?i=21'}]
    

    Or set allDayDefault to false:

    $('#calendar').fullCalendar({
        ...
    allDayDefault: false,
        ...
    });
    

提交回复
热议问题