DayPilot.Modal.useIframe

The useIframe property (boolean) specifies whether an iframe is used to display modal dialog content shown using DayPilot.Modal.showHtml().

Declaration

DayPilot.Modal.useIframe

Default Value

true

Notes

This property applies only to DayPilot.Modal.showHtml(). When you display a separate page using DayPilot.Modal.showUrl(), an iframe is always used.

Example

const modal = new DayPilot.Modal();
modal.useIframe = false;
modal.showHtml("<div>Hello, world!</div>");

See Also

DayPilot.Modal.showHtml()

DayPilot.Modal.showUrl()

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript