pub fn list<V>(iterator: impl IntoIterator<Item = V>) -> Listwhere
V: IntoView + 'static,Expand description
A list of views built from an iterator which remains static and always contains the same elements in the same order.
A list is like a stack but also has built-in support for the selection of items: up and down using arrow keys, top and bottom control using the home and end keys, and “acceptance” of an item using the Enter key.
§Example
use floem::views::*;
list(
vec![1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9]
.iter()
.map(|val| text(val)),
);