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§impl Debug for EuvDropdownProps
impl Debug for EuvDropdownProps
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