Function zng_wgt::node::presenter

source ·
pub fn presenter<D: VarValue>(
    data: impl IntoVar<D>,
    wgt_fn: impl IntoVar<WidgetFn<D>>,
) -> impl UiNode
Expand description

Node that presents data using wgt_fn.

The node’s child is always the result of wgt_fn called for the data value, it is reinited every time either variable changes.

See also presenter_opt for a presenter that is nil with the data is None.