list_presenter

Function list_presenter 

Source
pub fn list_presenter<D: VarValue>(
    list: impl IntoVar<ObservableVec<D>>,
    item_fn: impl IntoVar<WidgetFn<D>>,
) -> UiNode
Expand description

Node list 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.

See also the present_list method that can be called on the list variable.