DayPilot.Modal.showHtml

The showHtml() method opens the modal dialog and displays the specified HTML content.

Declaration

DayPilot.Modal.showHtml(html: string | HTMLElement): void

Parameters

  • html (string | HTMLElement) - HTML content or an element to display in the modal dialog

Example

const modal = new DayPilot.Modal({
  // ...
});
modal.showHtml("<div>Hello</div>");

See Also

DayPilot.Modal.showUrl()

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript