Struct leptos_core::ForProps
source · pub struct ForProps<E, T, G, I, K>where
E: Fn() -> Vec<T>,
G: Fn(Scope, &T) -> Element,
I: Fn(&T) -> K,
K: Eq + Hash,
T: 'static,{
pub each: E,
pub key: I,
pub children: Box<dyn Fn() -> Vec<G>>,
}
Expand description
Properties for the For component, a keyed list.
Fields§
§each: E
Items over which the component should iterate.
key: I
A key function that will be applied to each item
children: Box<dyn Fn() -> Vec<G>>
Should provide a single child function, which takes