The zoomPosition property (string) specifies which part of the visible viewport is used as the reference date when switching the zoom level of the JavaScript Scheduler. The Scheduler tries to keep that date at the same viewport position after the zoom change.
Available since 2019.2.3860.
DayPilot.Scheduler.zoomPosition"left" keeps the left side of the visible viewport as the zoom reference position.
"middle" keeps the middle of the visible viewport as the zoom reference position.
"right" keeps the right side of the visible viewport as the zoom reference position.
"left"JavaScript
const dp = new DayPilot.Scheduler("dp", {
zoomPosition: "middle",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
zoomPosition: "middle",
// ...
};React
<DayPilotScheduler
zoomPosition="middle"
{/* ... */}
/>Vue
<DayPilotScheduler
zoomPosition="middle"
<!-- ... -->
/>Zoom [doc.daypilot.org]