DayPilot.Modal.onClosed

The onClosed event handler fires after the modal dialog has been closed. The result parameter passed to close() is available as args.result.

Declaration

DayPilot.Modal.onClosed(args)

Parameters

  • args.result - custom parameter passed to close()

  • args.canceled (boolean) - indicates that the modal has been closed without clicking OK

  • args.backgroundClick (boolean) - indicates that the modal dialog has been closed by clicking the background mask

Notes

Use onClose if you need to inspect or cancel the close request before the dialog is removed.

Example

const modal = new DayPilot.Modal({
  onClosed: (args) => {
    console.log(args.result);
  },
  // ...
});
modal.showHtml("Hello");

See Also

DayPilot.Modal.close

DayPilot.Modal.onClose

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript