Mar*_*nia 6 javascript rrule fullcalendar fullcalendar-4
我目前正在使用 rrule 插件开发 Fullcalendar v4
我有这个代码
var calendarEl = document.getElementById('calendardemo');
var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: ['interaction', 'dayGrid', 'timeGrid', 'momentTimezone', 'rrule', 'list'],
header: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
editable: true,
events: [
{ // standard property
title: 'This is sample event',
start: '2019-12-29',
end: '2019-12-31'
},
{
title: 'event with rrule plugin',
rrule: {
freq: 'weekly',
interval: 5,
byweekday: [ 'mo', 'fr' ],
dtstart: '2019-12-29T10:30:00',
until: '2020-12-31'
}
}
]
});
calendar.render();
Run Code Online (Sandbox Code Playgroud)
请注意:
{ // this is the standard (No issues)
title: 'This is sample event',
start: '2019-12-29',
end: '2019-12-31'
}
Run Code Online (Sandbox Code Playgroud)
{ // Not updating on change view
title: 'event with rrule plugin',
rrule: {
freq: 'weekly',
interval: 5,
byweekday: [ 'mo', 'fr' ],
dtstart: '2019-12-29T10:30:00',
until: '2020-12-31'
}
}
Run Code Online (Sandbox Code Playgroud)
现在,当我拖放“这是示例事件”然后更改视图网格或单击 < > 时,它会保持更新。但是当我拖放“带有 rrule 插件的事件”然后更改视图网格或单击 < > 它没有更新。它只是停留在第一次加载时加载的位置。请帮忙。谢谢 !
| 归档时间: |
|
| 查看次数: |
197 次 |
| 最近记录: |