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
405 stars 23 forks source link

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

Closed RubenPX closed 9 months ago

RubenPX commented 11 months 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 9 months 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