我在我的项目中使用的是jQuery 2.0.0+,Moment 2.9.0+。我无法在Dayview中添加资源。这是我的编码
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
defaultView : 'agendaDay',
defaultDate : '2018-04-07',
editable : true,
selectable : true,
eventLimit : true, // allow "more" link when too many events
header : {
left : 'prev,next today',
center : 'title',
right : 'agendaDay,month'
},
views : {
agendaTwoDay : {
type : 'agenda',
duration : {
days : 2
},
//groupByDateAndResource: true
}
},
//// uncomment this line to hide the all-day slot
allDaySlot : false,
resources : [ {
id : 'a',
title : 'Room A'
}, {
id : 'b',
title : 'Room B',
eventColor : 'green'
}, {
id : 'c',
title : 'Room C',
eventColor : 'orange'
}, {
id : 'd',
title : 'Room D',
eventColor : 'red'
} ],
events: [
{ id: '1', resourceId: 'a', start: '2018-04-06', end: '2018-04-08', title: 'event 1' },
{ id: '2', resourceId: 'a', start: '2018-04-07T09:00:00', end: '2018-04-07T14:00:00', title: 'event 2' },
{ id: '3', resourceId: 'b', start: '2018-04-07T12:00:00', end: '2018-04-08T06:00:00', title: 'event 3' },
{ id: '4', resourceId: 'c', start: '2018-04-07T07:30:00', end: '2018-04-07T09:30:00', title: 'event 4' },
{ id: '5', resourceId: 'd', start: '2018-04-07T10:00:00', end: '2018-04-07T15:00:00', title: 'event 5' }
],