vue-virtual-collection icon indicating copy to clipboard operation
vue-virtual-collection copied to clipboard

How to handle infinite scroll triggering?

Open mortyccp opened this issue 5 years ago • 2 comments

I would like to implement an infinite scroll ui with this library. And would like to know how can I know it's time to trigger another fetch. I seem there are no callback for this use case.

mortyccp avatar Apr 10 '19 12:04 mortyccp

Sorry for my late. You may not need callback because Vue is a MVVM framework. You can change collection directly after your fetch is completed.

starkwang avatar May 30 '19 14:05 starkwang

I just to have an event for notifying the collection is almost scrolled to the bottom of the last element is being visible so I can do a fetch.

Right now I use scroll listener on the component or append a pseudo-component at the end of the list to act as a trigger to trigger a fetch.

If the library can provide the event then I don't have to implement that.

mortyccp avatar May 31 '19 02:05 mortyccp