So, are you dragging an event from an external list into the event calendar? Just trying to understand the workflow a bit better. Could you explain the use case in more detail? Also, could you share some more of your current code how you’re trying this?
Hi,
As per this example two-synchronized-timelines I want to take some confirmation from user and also need to show some warnings before allowing to drop event to other timeline.
I’ve tried the demo you mentioned. My idea is to create the event using the async function (where the event is passed as a parameter) and immediately return false right after the async call. Here’s the sample I tried in that demo:
Thank you for the solution. I am already following a similar approach, but my issue is that I don’t want to use setFlights, as I am performing complex calculations to display overlapping flights and other computations that I prefer not to re-run.
Since I can drag and drop in both timelines, I would need to maintain two separate states and additional calculations which is not preferable.
However, this could be solved easily if a built-in async method existed.
Thanks for the feedback! There isn’t any built-in way to use async in onEventCreate like the example you shared initially. Apologies, but I still don’t see the complete flow of what’s happening. Could you share more details about the heavy calculations and the overall flow?