Open jouni opened 7 years ago
Would be nice to be able to scroll to certain place in the grid. My case is to reload the table and reset the scroll position to 0,0. Currently, I am doing this.$.grid.$.scroller.scroll(0,0)
We did this on our px-data-grid wrapper element with magic of: https://gist.github.com/alump/cfa7b08a0973a53303a6be8cc83d1e16
We should fire scroll events when the grid is scrolled, which the developer can listen and react to.
The event object ("e") should have both scrollTop and scrollLeft properties that present the grid’s state. If possible, it should also have the scrollHeight property that indicates the total of the grid body.
This will enable developers to do additional customizations based on the scroll position, to add some functionality which is not built-in, like a scrollbar indicator (like you see in Google Docs).