The disposeOnClose property (boolean) specifies whether the internal iframe object will be reused.
Declaration
DayPilot.Modal.disposeOnCloseDefault Value
trueNotes
If set to true, the iframe object used to display a standalone page using DayPilot.Modal.showUrl() is removed from the DOM. If set to false, the DOM object is cached and reused on the next DayPilot.Modal.showUrl() call.
Example
const modal = new DayPilot.Modal({
disposeOnClose: false,
// ...
});
modal.showUrl("/details.html");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot