DayPilot.Modal.scrollWithPage

The scrollWithPage property (boolean) specifies whether the modal dialog scrolls with the page or stays at the same position using fixed positioning.

Declaration

DayPilot.Modal.scrollWithPage

Default Value

true

Notes

Set this property to false to keep the dialog in the same viewport position while the document scrolls.

Example

const modal = new DayPilot.Modal({
  scrollWithPage: false,
  // ...
});
modal.showUrl("/dialog.html");

See Also

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript