A Yew component for virtual scrolling / scroll windowing -- Only renders the visible content into the dom.
```rust struct MyItem { value: usize }
impl From
fn view(&self) -> yew::Html { // Items is wrapped with an Rc to avoid cloning large lists. let items = Rc::clone(&self.items); html! {
<VirtualScroller<MyItem>
items={items}
row_height={32.0}
class=Classes::from("scroller")
/>
</div>
}
} ```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.