Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.48k stars 901 forks source link

Hiding items #719

Open Mioleris opened 2 years ago

Mioleris commented 2 years ago

Im Using <DynamicScroller> and is there a way not to render item if lets say in the item there is visible: false. And it will be visible later after some button click? Tried adding v-if for <DynamicScrollerItem> but still item is rendered and shows blank space.

lkounadis commented 2 years ago

The library doesnt support it after looking at the code. I am working on a solution to give this support

vvy6791 commented 1 year ago

Im Using <DynamicScroller> and is there a way not to render item if lets say in the item there is visible: false. And it will be visible later after some button click? Tried adding v-if for <DynamicScrollerItem> but still item is rendered and shows blank space.

You must kick the item from the underlying array if you want to "hide" this item. And insert it back to array when item must be visible.