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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot