search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot React: When Event is moved I wanna ask a question if they are sure they wanna move it

Asked by Renato
28 days ago.

Hi ,I´m trying to ask the user if they are sure they wanna move the event after they move it and if they click “no“ I want the event to g back to his old place , is there anyway I can do that?

Answer posted by Dan Letecky [DayPilot]
28 days ago.

Yes, you can find an example in the documentation for event moving:

onEventMove: async (args) => {
  args.async = true;
  const modal = await DayPilot.Modal.confirm("Do you really want to move this event?");
  if (modal.canceled) {
      args.preventDefault();
  }
  args.loaded();
}
New Reply
This reply is
Attachments:
or drop files here
Your name (optional):