简体   繁体   English

FullCalendar eventDrop应该是一整天

[英]FullCalendar eventDrop should be full day

In this following Sample, 在以下示例中,

http://travelhatke.com/demo/fullcalendar/demos/spdemo.html http://travelhatke.com/demo/fullcalendar/demos/spdemo.html

I need the events to be full day always. 我需要活动始终保持一整天。

ie, If an event is overlapped on drop, it should move to next available full day slot... 即,如果某个事件重叠放置,则应移至下一个可用的全天时段...

The final result should be that event should always be full day. 最终结果应该是该事件应该始终是一整天。

Please help. 请帮忙。

Go step by step for this. 逐步进行此操作。

  1. on drop function of calendar use -> copiedEventObject.allDay = true; 在日历的放置函数上使用-> copyedEventObject.allDay = true;
  2. Then check for overlapping events follow this link click here. 然后检查重叠事件,点击此链接
  3. If overlapping increment the date object by 1 and then place it. 如果重叠,则将日期对象增加1,然后放置它。

I hope it might help. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM