允许在重复事件中添加事件 [英] Allow to add event in recurring event
问题描述
你好,
我正在使用SharePoint中的自定义日历,同样,我已经使用开始日期"和创建日期"创建了自定义列表.时间,结束日期和时间时间,是收割事件(是/否),位置.到目前为止,我使用rest api和jQuery完整日历实现了所有操作.只有一个
逻辑卡住了.
如果计划事件是其他时间的重复事件,我必须允许用户预订事件.
我的意思是:假设我创建了一个条目:
开始日期:2018年1月10日 3:00 PM
结束日期:2018年1月20日 4:00 PM
重复:是的,
因此,此活动将于2018年1月10日至2018年1月20日(每天)3:00 PM至4:00 PM之间开始.
现在,我正在创建另一个活动,该活动将于2018年1月13日01:00 PM到 2018年1月13日2:55 PM开始,然后我应该允许.
2018年1月14日11:AM PM至2018年1月17日11:55 AM,重复:是. -应该允许的.
我怎样才能做到这一点?对此事有任何帮助.
Hello ,
I'm Working on custom calendar in SharePoint , for the same I have created custom list with Start Date & time , End Date & time , Is Reaping Event (Yes/No) , Location.So far I implemented everything using rest api and jQuery full calendar. Only one
logic I got stuck.
I have to allow user to book an event if schedule event is Repeating event of other time.
What I mean : Suppose I have created one entries :
Start Date : 10 Jan 2018 3:00 PM
End Date : 20 Jan 2018 4:00 PM
Is Repeating : Yes,
So this event will start from 10 jan 2018 to 20 Jan 2018 daily between 3:00 PM to 4:00 PM.
Now I am creating another event which going to start on 13 Jan 2018 01:00 PM to 13 Jan 2018 2:55 PM ,then I should allow .
14 Jan 2018 11:AM PM to 17 Jan 2018 11:55 AM , Is Repeating : Yes. - It should allow.
How can I achieve this ? any help on this matter is appriciated.
推荐答案
在Jquery Full Calendar事件集合中,我们可以如下定义事件:
In Jquery Full Calendar events collection, we can define the event like below:
(文档).ready(function(){
(document).ready(function() {
('#calendar').fullCalendar({ 标头:{ 左:上一个,下一个今天", 中心:标题", 右:"month,basicWeek,basicDay" }, defaultDate:'2017-09-12', navLinks:真,//可以单击日期/星期名称来浏览视图 可正确, eventLimit:true,//允许更多"发生过多事件时链接 事件:[ { 标题:重复事件", 开始:'2018-01-10T15:00:00', 结束于:'2018-01-20T16:00:00', isRecurrence:正确 }, { 标题:"testevent", 开始:'2018-01-13T13:00:00', 结束于:'2018-01-13T14:55:00' }, { 标题:"testevet2", 开始:'2018-01-14T23:00:00', 结束于:'2018-01-17T11:55:00', isRecurrence:true }, ] }); });
('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,basicWeek,basicDay' }, defaultDate: '2017-09-12', navLinks: true, // can click day/week names to navigate views editable: true, eventLimit: true, // allow "more" link when too many events events: [ { title: 'Repeating Event', start: '2018-01-10T15:00:00', end:'2018-01-20T16:00:00', isRecurrence: true }, { title:'testevent', start:'2018-01-13T13:00:00', end:'2018-01-13T14:55:00' }, { title:'testevet2', start:'2018-01-14T23:00:00', end:'2018-01-17T11:55:00', isRecurrence:true }, ] }); });
结果:
谢谢
最好的问候
这篇关于允许在重复事件中添加事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!