The container property (HTMLElement) specifies the parent DOM element that will be used to display the modal dialog, including the background overlay and the modal content.
DayPilot.Modal.containernullIf not specified, the modal dialog uses document.body as the container.
HTML modal example:
const target = document.getElementById("target");
const modal = new DayPilot.Modal({
container: target,
// ...
});
modal.showHtml("Hello world!");JavaScript prompt() example:
DayPilot.Modal.prompt("Your name:", "", {
container: document.getElementById("target")
});