pub struct EuvContextMenuItemProps {
pub open: Signal<bool>,
pub value: &'static str,
pub label: &'static str,
pub disabled: bool,
pub close_on_click: bool,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props of the euv_context_menu_item component.
Fields§
§open: Signal<bool>The shared open-state signal for the context menu.
value: &'static strThe value the row stands for.
label: &'static strThe label shown inside the row.
disabled: boolWhether the row is disabled.
close_on_click: boolWhether choosing the row closes the menu. Defaults to true.
on_select: Option<Rc<dyn Fn(&'static str)>>Optional callback receiving the chosen value.
Trait Implementations§
Source§impl Clone for EuvContextMenuItemProps
impl Clone for EuvContextMenuItemProps
Source§impl Debug for EuvContextMenuItemProps
impl Debug for EuvContextMenuItemProps
Source§impl Default for EuvContextMenuItemProps
Default construction for EuvContextMenuItemProps.
impl Default for EuvContextMenuItemProps
Default construction for EuvContextMenuItemProps.
Source§fn default() -> Self
fn default() -> Self
Constructs a default EuvContextMenuItemProps value.
Auto Trait Implementations§
impl !RefUnwindSafe for EuvContextMenuItemProps
impl !Send for EuvContextMenuItemProps
impl !Sync for EuvContextMenuItemProps
impl !UnwindSafe for EuvContextMenuItemProps
impl Forget for EuvContextMenuItemProps
impl Freeze for EuvContextMenuItemProps
impl Move for EuvContextMenuItemProps
impl Unpin for EuvContextMenuItemProps
impl UnsafeUnpin for EuvContextMenuItemProps
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