我正在基于全日历设置一个新项目,但是在基本星期视图中,资源将自动隐藏。我想在basicweek视图中显示资源列。 有人知道如何解决这个问题吗?
$('#calendar').fullCalendar({
header: {
left: 'promptResource today prev,next',
center: 'title',
right: 'basicWeek'
},
customButtons: {
promptResource: {
text: '+ room',
click: function() {
var title = prompt('Room name');
if (title) {
$('#calendar').fullCalendar(
'addResource',
{ title: title },
true // scroll to the new resource?
);
}
}
}
},
defaultView: 'basicWeek',
resourceLabelText: 'Rooms',
resources: [
{ id: 'a', title: 'Auditorium A' },
{ id: 'b', title: 'Auditorium B' },
{ id: 'c', title: 'Auditorium C' },
],
events: [
{
id: '1',
resourceId: 'e',
title: 'Meeting',
start: '2019-01-13'
}
],
});
});