scrollLayoutCell
Description
Scrolls the layout view to the specified position
scrollLayoutCell: (name: string, x: number | null, y: number | null) => void
Parameters
name- (required) string - the name of the layout viewx- (required) number | null - optional, the value of the horizontal scroll or 'null' (if the scroll position shouldn't be changed)y- (required) number | null - optional, the value of the vertical scroll or 'null' (if the scroll position shouldn't be changed)
Example
// scrolls layout view only horizontally
gantt.scrollLayoutCell("resourceTimeline", 50);
// scrolls layout view only vertically
gantt.scrollLayoutCell("resourceTimeline", null, 50);
// scrolls layout view both horizontally and vertically
gantt.scrollLayoutCell("resourceTimeline", 100, 100);