DayPilot.Modal.disposeOnClose

The disposeOnClose property (boolean) specifies whether the internal iframe object will be reused.

Declaration

DayPilot.Modal.disposeOnClose

Default Value

true

Notes

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

DayPilot.Modal.showUrl()

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript