scrollTo

scrolls the Gantt container to the specified position

void scrollTo(number|null x,number|null y);

Parameters

xnumber|nullvalue of horizontal scroll or 'null' (if the scroll position shouldn't be changed)
ynumber|nullvalue of vertical scroll or 'null' (if the scroll position shouldn't be changed)

Example

gantt.scrollTo(30, 80); // scrolls container both horizontally and vertically 
 
gantt.scrollTo(30, null); // scrolls container only horizontally
 
gantt.scrollTo(null, 80); // scrolls container only vertically

See also
Back to top