pub struct EuvContextMenuCheckboxItemProps {
pub open: Signal<bool>,
pub close_on_click: bool,
pub label: &'static str,
pub checked: Signal<bool>,
pub on_select: Option<Rc<dyn Fn(bool)>>,
}Expand description
Props of the euv_context_menu_checkbox_item component.
Fields§
§open: Signal<bool>The shared open-state signal for the context menu.
close_on_click: boolWhether choosing the row closes the menu. Defaults to false.
label: &'static strThe label shown inside the row.
checked: Signal<bool>Whether the box is checked.
on_select: Option<Rc<dyn Fn(bool)>>Optional callback fired when the row is chosen.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EuvContextMenuCheckboxItemProps
impl !Send for EuvContextMenuCheckboxItemProps
impl !Sync for EuvContextMenuCheckboxItemProps
impl !UnwindSafe for EuvContextMenuCheckboxItemProps
impl Forget for EuvContextMenuCheckboxItemProps
impl Freeze for EuvContextMenuCheckboxItemProps
impl Move for EuvContextMenuCheckboxItemProps
impl Unpin for EuvContextMenuCheckboxItemProps
impl UnsafeUnpin for EuvContextMenuCheckboxItemProps
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