✨Yew-InfiniteFor.rs✨
Yew-InfiniteFor.rs is a list component that scrolls infinitely for Yew.
🔥What's the highlight🔥
- It support function_component style!
- It can smart change how many items render in once by view size.
- It support row mode and column mode.
- And, it's easy to use!
📑How to use it?📑
Just 3 Simple steps, do like this:
-
Get
Yew-Canvas.rs!#Cargo.toml [] ="0.19" ="..." -
Create a
requestCallback in the function_component!// This callback accept a Two-tuple: // - n: usize: the serial number of the item // - ret: Callback<Html>: Html setter of the item let request = from; -
Return the component as
InfiniteFor!html!
👌Run Exmple👌
- This requires you to set up the
Yew.rsdevelopment environment in advance, the following is aTrunkpackaging example: cd ./examples/base-usetrunk server
⚖️License⚖️
Yew-InfiniteFor.rs is dual licensed under the MIT license and the Apache License (Version 2.0).