Skip to main content

scroll

fires on scrolling a grid

scroll: (scrollState: object) => void;

Parameters:

The callback of the event is called with the following parameter:

  • scrollState: object - an object with the new top and left coordinates

Example

grid.events.on("scroll", ({ top, left }) => {
console.log("The grid is scrolled to ", top, left);
});

Related sample: Grid. Events