Function zng::widget::node::list_presenter
source · pub fn list_presenter<D>(
list: impl IntoVar<ObservableVec<D>>,
item_fn: impl IntoVar<WidgetFn<D>>,
) -> impl UiNodeListwhere
D: VarValue,
Expand description
Node that presents list
using item_fn
for each new list item.
The node’s children is the list mapped to node items, it is kept in sync, any list update is propagated to the node list.