DayPilot.Calendar.scrollToHour

The scrollToHour() method sets the vertical scrollbar position to the specified hour of day.

Declaration

DayPilot.Calendar.scrollToHour(hour);

Parameters

  • hour (number) - target hour of day

Example

const dp = new DayPilot.Calendar("dp", {
  // ...
});
dp.init();

dp.scrollToHour(10);

See Also

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript