DayPilot.Gantt.scrollTo

The scrollTo() method sets the horizontal scrollbar position of the Gantt chart to the specified date.

Declaration

DayPilot.Gantt.scrollTo(date)

Parameters

  • date (DayPilot.Date or string) - target date; string values must be convertible using the DayPilot.Date constructor

Example

Scroll to the current time.

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

Scroll to January 1, 2035.

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

See Also

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript