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) - the target hour of day

Example

<div id="dp"></div>

<script>
  var dp = new DayPilot.Calendar("dp");
  // ...
  dp.init();

  dp.scrollToHour(10);
</script>