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
9 months 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]
9 months 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();
}
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.