jonasgeiler / svelte-tiny-virtual-list

📚 A tiny but mighty list virtualization library for Svelte, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
https://svelte-tiny-virtual-list.jonasgeiler.com
MIT License
467 stars 25 forks source link

It's possible to know what items are rendered? #28

Closed RubenPX closed 1 year ago

RubenPX commented 1 year ago

I'm trying to search some function or prop that shows me items or indexes are rendered

Someling like: rendered indexes 23 to 27.

inzanez commented 1 year ago

@RubenPX how about using the event itemsUpdated listed in the documentation? I guess that should do.

itemsUpdated - Fired when the visible items are updated detail Props: start: number - Index of the first visible item end: number - Index of the last visible item