pub struct EuvDropdownProps {
pub open: Signal<bool>,
pub items: Vec<EuvDropdownItem>,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_dropdown component.
The open state is owned by the caller so the trigger (passed as children) can toggle it; selecting an item closes the menu.
Fields§
§open: Signal<bool>The open state signal toggled by the trigger children.
items: Vec<EuvDropdownItem>The menu items.
on_select: Option<Rc<dyn Fn(&'static str)>>Optional select callback receiving the chosen item value.
Trait Implementations§
Source§impl Clone for EuvDropdownProps
impl Clone for EuvDropdownProps
Source§fn clone(&self) -> EuvDropdownProps
fn clone(&self) -> EuvDropdownProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EuvDropdownProps
impl Debug for EuvDropdownProps
Source§impl Default for EuvDropdownProps
impl Default for EuvDropdownProps
Source§fn default() -> EuvDropdownProps
fn default() -> EuvDropdownProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvDropdownProps
impl !Send for EuvDropdownProps
impl !Sync for EuvDropdownProps
impl !UnwindSafe for EuvDropdownProps
impl Freeze for EuvDropdownProps
impl Unpin for EuvDropdownProps
impl UnsafeUnpin for EuvDropdownProps
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