Function zng_wgt::node::with_index_node

source ยท
pub fn with_index_node(
    child: impl UiNode,
    panel_list_id: impl Into<StateId<PanelListRange>>,
    update: impl FnMut(Option<usize>) + Send + 'static,
) -> impl UiNode
Expand description

Helper for a property that gets the index of the widget in the parent panel.

See with_index_len_node for more details.