简体   繁体   English

为什么在FullCalendar 2.8.0中不为我拖动和调整大小?

[英]Why won't drag and resize work for me in FullCalendar 2.8.0?

After upgrading from fullcalendar 2.0.2 to fullcalender 2.8.0, it's generating an event that looks like this: 从fullcalendar 2.0.2升级到fullcalender 2.8.0之后,它会生成一个如下所示的事件:

<a class="fc-time-grid-event fc-v-event fc-event fc-start fc-end fc-draggable fc-resizable" etc etc>
  <div class="fc-content">
    <div class="fc-time" data-start="10:30" etc etc></div>
    <div class="fc-title">Foo</div></div>
  <div class="fc-bg"></div>
  <div class="fc-resizer fc-end-resizer"></div>
</a>

It's being generated from a JSON feed that sets editable , startEditable and durationEditable to be true. 它是从JSON供稿生成的,该供稿将editablestartEditabledurationEditable设置为true。 The global equivalents of these are also true. 这些的全局等效项也是如此。 Given the classes we can see are being set on the <a> , I'd say these are being set correctly. 给定我们可以在<a>上设置的类,我会说这些设置正确。

So it should be draggable and resizable. 因此,它应该是可拖动且可调整大小的。

And when you hover the cursor over the edge, it changes to an arrow to invite you to resize it. 当您将光标悬停在边缘上时,它将变为箭头以邀请您调整其大小。

But the events cannot be resized or dragged. 但是事件无法调整大小或拖动。

How can I diagnose what's going on? 我如何诊断发生了什么?

I think, this version support delay touch, are you sure you are checking on web ? 我认为,此版本支持延迟触摸,您确定要在网上检查吗? or touch device, if touch device then you need to long press. 或触摸设备,如果需要触摸设备,则需要长按。

One more thing noticed: durationEditable to eventDurationEditable 还要注意一件事:durationEditable到eventDurationEditable

If still not getting, than create pluker so it will be more clear 如果仍然无法获得,则比创建pluker更清楚

Cheers! 干杯!

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

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