Skip to main content

onGanttScroll

Description

Fires when the Gantt chart is scrolled to a particular point

onGanttScroll: (left: number, top: number) => void;

Parameters

  • left - (required) number - the position of horizontal scroll
  • top - (required) number - the position of vertical scroll

Example

gantt.attachEvent("onGanttScroll", function (left, top){
// any custom logic here
});
  • How-tos (read how to implement an infinite scroll)
  • How-tos (read how to load tasks dynamically)