DayPilot.Modal.onClose

The onClose event is fired when the dialog is to be closed. You can cancel the closing here using args.preventDefault().

Declaration

DayPilot.Modal.onClose(args)

Parameters

  • args.backgroundClick - set to true if the modal is closing because of a click on the background div
  • args.result - custom parameter passed to close()
  • args.preventDefault() - cancels the closing