The onClosed event handler fires after the modal dialog has been closed. The result parameter passed to close() is available as args.result.
DayPilot.Modal.onClosed(args)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
Use onClose if you need to inspect or cancel the close request before the dialog is removed.
const modal = new DayPilot.Modal({
onClosed: (args) => {
console.log(args.result);
},
// ...
});
modal.showHtml("Hello");