pub struct EuvTreeProps {
pub nodes: Vec<EuvTreeNode>,
pub selected: Signal<String>,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
pub default_expanded: bool,
}Expand description
Props for the euv_tree component.
Defines the strongly-typed interface for a hierarchical tree. The
selection is owned by the caller through the selected signal, so the
tree takes part in two-way binding with the rest of the page; the
expansion state is owned by the component itself.
Fields§
§nodes: Vec<EuvTreeNode>The root nodes of the tree.
selected: Signal<String>The signal holding the selected node’s value.
on_select: Option<Rc<dyn Fn(&'static str)>>Optional callback invoked with the clicked node’s value.
default_expanded: boolWhether every node starts out expanded on the first render.
Trait Implementations§
Source§impl Clone for EuvTreeProps
impl Clone for EuvTreeProps
Source§impl Debug for EuvTreeProps
impl Debug for EuvTreeProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvTreeProps
impl !Send for EuvTreeProps
impl !Sync for EuvTreeProps
impl !UnwindSafe for EuvTreeProps
impl Freeze for EuvTreeProps
impl Unpin for EuvTreeProps
impl UnsafeUnpin for EuvTreeProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more