The height property (number) specifies the modal dialog height in pixels. If DayPilot.Modal.autoStretch is enabled, this value becomes the minimum height.
Declaration
DayPilot.Modal.heightDefault Value
200Notes
When DayPilot.Modal.autoStretch is enabled, the dialog can grow beyond this value to avoid a scrollbar.
If DayPilot.Modal.maxHeight is set, the automatic growth stops there.
Example
const modal = new DayPilot.Modal({
height: 320,
autoStretch: true,
maxHeight: 600,
// ...
});
modal.showUrl("/dialog.html");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot