Skip to main content

tree_select_pick_node

Function tree_select_pick_node 

Source
pub fn tree_select_pick_node(
    value: Signal<String>,
    on_select: Option<Rc<dyn Fn(&'static str)>>,
    open: Signal<bool>,
    node_value: &'static str,
)
Expand description

Picks a node: writes its value, reports it and closes the panel.

The value lands in the caller’s signal first, so the callback and the closing of the panel both see the new selection.

§Arguments

  • Signal<String> - The value signal owned by the caller.
  • Option<Rc<dyn Fn(&'static str)>> - The select callback.
  • Signal<bool> - The panel open state owned by the component.
  • &'static str - The value of the picked node.