Detect end of scroll

Tags: #<Tag:0x00007f8b1da7b2f0>

Is there a way/API to find the that we have reached end of vertical scroll in handsontable?

Hey @yogiv88

That’s a good question!

There’s no single method.
But you can call getLastVisibleRow method (from the autoRowSize plugin) to compare it with the total amount of rows (via countRows method) in the afterScrollVertically hook.

Here’s https://jsfiddle.net/gpkw0y7t/ how it works in practise.

That’s how i am doing now. just wanted to know if there is any API available.

Thanks for the response.

1 Like