Function zng_wgt::node::with_index_len_node
source ยท pub fn with_index_len_node(
child: impl UiNode,
panel_list_id: impl Into<StateId<PanelListRange>>,
update: impl FnMut(Option<(usize, usize)>) + Send + 'static,
) -> impl UiNode
Expand description
Helper for a property that gets the index of the widget in the parent panel and the number of children.
Panels must use PanelList::track_info_range
to collect the panel_list_id
, then implement getter properties
using the methods in this module. See the stack!
getter properties for examples.