v1ack / svelte-virtual-scroll-list

Virtualized scrolling for big lists
https://v1ack.github.io/svelte-virtual-scroll-list/
MIT License
114 stars 18 forks source link

Update VirtualScroll.svelte - expose "index" to item #18

Closed nickgraffis closed 1 year ago

nickgraffis commented 1 year ago

Previously you could not do this:

<VirtualScroll let:data let:index> ... </VirtualScroll>

now you can.

solves for #8

v1ack commented 1 year ago

Can you up the version in the package.json and mention it in readme? After that I'll merge

nickgraffis commented 1 year ago

Of course, thanks for your hard work! 🙏