Feature Request: Ability to get event that the dragged event is dropped on #579
Replies: 2 comments
-
|
Unfortunately, there is no built-in function for this. As a workaround, you can try to use dateFromPoint() to find the time where the drop occurred and then find the appropriate event based on that time. The downside of this approach is that multiple events may be located at that point... |
Beta Was this translation helpful? Give feedback.
-
|
I used eventMouseEnter to store the hovered event in a ref. If that ref is not undefined or empty and the mouseup is truethen you have your hovered eclvent. Combined with eventdrag you could creste a workaround I think... use eventMouseLeave to empty the ref |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, the work done on this is amazing. Thank you so much for making this available.
I'm currently working on a resource scheduling module and have been working on adapting this to our site.
One thing I'm stumped on is the ability to drag one event on top of another and essentially swap their start times.
If on the eventDrop() callback, I could get "dropped on event" out of the info, that would solve all my problems.
Or if anyone has a simple work around for this, I'm all for it!
thanks!
Beta Was this translation helpful? Give feedback.
All reactions