rocwang/vue-virtual-scroll-grid

[FEATURE REQUEST] ADD Events

ishaiavrahami opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Hi, first off, great job with this component! THere are many events that are missing for example:
@resize: emitted when the size of the scroller changes.
@update (startIndex, endIndex, visibleStartIndex, visibleEndIndex): emitted each time the views are updated, only if emitUpdate prop is true.
@scroll-start: emitted when the first item is rendered.
@scroll-end: emitted when the last item is rendered.

I'm looking to fetch more data using the @scroll-end event but this is missing.
Please consider adding these

Unfortunately, I'm afriad I don't have the capcity to implement these events.

I'm looking to fetch more data using the @scroll-end event but this is missing.

The pageProvider should be called when the grid component needs more data for rendering. Not sure how I can incoperate the current implemenation with loadding data whenn @scroll-end. The user provided pageProvider should be ready to provide paged data called by the grid component at any time.