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

Feature request: Item row clicked event #5

Closed kayazinc closed 2 years ago

kayazinc commented 2 years ago

May i request for a new feature: trigger an event when item row is clicked?

Thanks

v1ack commented 2 years ago

Can you explain? If you are talking about event on item - you can do it yourself by adding on:click

Something like

<VirtualScroll
    bind:this={list}
    data={items}
    key="uniqueKey"
    let:data
>
    <div on:click={myClickAction}/>
      {data.uniqueKey}
    </div>
</VirtualScroll>
kayazinc commented 2 years ago

yes that is what i meant. sry for asking such a novice question. 🙏

thanks!

v1ack commented 2 years ago

You can search for Svelte communities online if you are new in Svelte As I know, there is an English official Discord channel and Russian Telegram chat