The scrollTo() method sets the horizontal scrollbar position of the Gantt chart to the specified date.
Declaration
DayPilot.Gantt.scrollTo(date)Parameters
date(DayPilot.Dateor string) - target date; string values must be convertible using theDayPilot.Dateconstructor
Example
Scroll to the current time.
gantt.scrollTo(new DayPilot.Date());Scroll to January 1, 2035.
gantt.scrollTo("2035-01-01");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot