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 OKargs.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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot