简体   繁体   English

如何在fullcalendar.js上拖放两个事件

[英]How to drag drop two events on fullcalendar.js

I am using fullcalendar.js ( http://fullcalendar.io/ ) with jquery ui selectable. 我正在使用fullcalendar.js( http://fullcalendar.io/ )和可选择的jQuery ui。

I am able to drag and drop single events, but I am trying to select multiple events and drag-n-drop them together. 我可以拖放单个事件,但是我试图选择多个事件并将它们拖放在一起。 The following code allows me to select multiple events: 以下代码允许我选择多个事件:

 $("div.fc-view").selectable({  
       appendTo:"body",
       filter: "div.fc-event",
       distance:1
  });

Is there any way to drag all (eg weeks) events together, and drop them on next week? 有什么办法可以将所有(例如几周)事件拖放到下周?

I have faced similar requirement and also spent lot of time to achieve this but at some point while moving to next week create problems. 我已经面临类似的要求,并且花了很多时间来实现这一目标,但是在下周的某个时候会遇到问题。 So I just you to use context menu on event right click where you can put copy and move button. 因此,我只需要您在事件右键单击上使用上下文菜单,即可在其中放置复制和移动按钮。 Then move to next week and again context menu on select where paste button will appear. 然后移至下周,然后再次在上下文菜单中选择将出现粘贴按钮的位置。 Thus you can make copy,move and paste feature easily. 因此,您可以轻松进行复制,移动和粘贴功能。

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

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