在更改视图网格fullcalendar v4上拖放后,具有rrule插件的事件未更新 [英] events with rrule plugin is not updating after drag/drop on change view grid fullcalendar v4

查看:226
本文介绍了在更改视图网格fullcalendar v4上拖放后,具有rrule插件的事件未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用带有rrule插件的Fullcalendar v4

I am currently working on Fullcalendar v4 with rrule plugin

我有这个代码

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();

请注意:

{ // this is the standard (No issues)
     title: 'This is sample event',
     start: '2019-12-29', 
     end: '2019-12-31'
}

{ // 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'
     }
}

链接到演示

现在,当我拖动&删除这是示例事件" ,然后更改视图网格或单击< >保持更新.但是当我拖动&删除带有rrule插件的事件" ,然后更改视图网格或单击< >它没有更新.它只是停留在第一次加载的位置.请帮忙.谢谢!

Now when I drag & drop "This is sample event" then change view grid or click < > it stays updated. but when I drag & drop "event with rrule plugin" then change view grid or click < > it's not updated. it just stays where it was loaded in first load. Please help. Thanks !

推荐答案

您可能必须添加一个表单,该表单将允许用户在开始拖动重复的规则时对其进行更改.否则,您能否描述用户在另一个日期删除重复事件后的预期行为.将对规则进行哪些更改?

You might have to add a form that would allow a user to change repeated rules when they begin to drag them. Otherwise, could you describe expected behaviour after the user drops repeated event on another date. What changes would be applied to a rule?

这篇关于在更改视图网格fullcalendar v4上拖放后,具有rrule插件的事件未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆