The watchWidthChanges property (boolean) enables automatic detection of dimension changes in the JavaScript Calendar component, including DOM changes and window size updates.
Declaration
DayPilot.Calendar.watchWidthChangesDefault Value
trueNotes
Turning this detection off may result in smoother dimension animations, but you will then need to call DayPilot.Calendar.show() manually after the animation is complete to refresh the UI.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
watchWidthChanges: false,
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
watchWidthChanges: false,
// ...
};React
<DayPilotCalendar
watchWidthChanges={false}
{/* ... */}
/>Vue
<DayPilotCalendar
:watchWidthChanges="false"
<!-- ... -->
/>See Also
Responsive Column Width [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot