pub struct EuvTreeSelectProps {
pub nodes: Vec<EuvTreeNode>,
pub value: Signal<String>,
pub placeholder: &'static str,
pub label: &'static str,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_tree_select component.
The tree the panel shows is a list of EuvTreeNodes — the same node
type the euv_tree component renders — so one tree can be shared
between a standalone tree and a select. The selected value lives in a
caller-owned Signal<String>, so the control takes part in two-way
binding with the rest of the page; the open state of the panel is
owned by the component itself.
Fields§
§nodes: Vec<EuvTreeNode>The tree the panel shows.
value: Signal<String>The value of the selected node.
placeholder: &'static strThe text shown when nothing is selected.
label: &'static strThe group label above the control.
on_select: Option<Rc<dyn Fn(&'static str)>>The callback fired when a node is chosen.
Trait Implementations§
Source§impl Clone for EuvTreeSelectProps
impl Clone for EuvTreeSelectProps
Source§impl Debug for EuvTreeSelectProps
impl Debug for EuvTreeSelectProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvTreeSelectProps
impl !Send for EuvTreeSelectProps
impl !Sync for EuvTreeSelectProps
impl !UnwindSafe for EuvTreeSelectProps
impl Freeze for EuvTreeSelectProps
impl Unpin for EuvTreeSelectProps
impl UnsafeUnpin for EuvTreeSelectProps
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