Skip to main content

select_tree_node

Function select_tree_node 

Source
pub fn select_tree_node(
    selected: Signal<String>,
    on_select: Option<Rc<dyn Fn(&'static str)>>,
    value: &'static str,
)
Expand description

Selects a node and reports the selection to the caller.

The node’s value is written into the caller-owned selected signal and the on_select callback is called with it, so a caller can react to the selection without subscribing to the signal itself.

§Arguments

  • Signal<String> - The selected-value signal.
  • Option<Rc<dyn Fn(&'static str)>> - The select callback.
  • &'static str - The selected node’s value.