DayPilot.Gantt.scrollTo

Sets the horizontal scrollbar position of the Gantt chart to the target date.

Declaration

DayPilot.Gantt.scrollTo(date);

Parameters

  • date - DayPilot.Date or string convertible using DayPilot.Date() constructor

Examples

Scroll to current time.

gantt.scrollTo(new DayPilot.Date());

Scroll to January 1, 2015:

gantt.scrollTo("2015-01-01");