pub struct EuvCommandItemProps {
pub value: &'static str,
pub label: &'static str,
pub selected: bool,
pub disabled: bool,
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props of the euv_command_item component.
Fields§
§value: &'static strThe value the row stands for.
label: &'static strThe label shown inside the row.
selected: boolWhether the row is the selected one.
disabled: boolWhether the row is disabled.
on_select: Option<Rc<dyn Fn(&'static str)>>Optional callback receiving the chosen value.
Trait Implementations§
Source§impl Clone for EuvCommandItemProps
impl Clone for EuvCommandItemProps
Source§impl Debug for EuvCommandItemProps
impl Debug for EuvCommandItemProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvCommandItemProps
impl !Send for EuvCommandItemProps
impl !Sync for EuvCommandItemProps
impl !UnwindSafe for EuvCommandItemProps
impl Forget for EuvCommandItemProps
impl Freeze for EuvCommandItemProps
impl Move for EuvCommandItemProps
impl Unpin for EuvCommandItemProps
impl UnsafeUnpin for EuvCommandItemProps
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