pub struct EuvDropdownMenuCheckboxItemProps {
pub label: &'static str,
pub checked: Signal<bool>,
pub disabled: bool,
pub open: Signal<bool>,
pub close_on_click: bool,
pub on_checked_change: Option<Rc<dyn Fn(bool)>>,
}Expand description
Props of the euv_dropdown_menu_checkbox_item component.
The row carries a box the reader ticks.
Fields§
§label: &'static strThe label shown inside the row.
checked: Signal<bool>Whether the box is ticked.
disabled: boolWhether the row ignores focus and activation.
open: Signal<bool>The owning menu’s open state when close-on-click is requested.
close_on_click: boolWhether activation closes the owning menu. Defaults to false.
on_checked_change: Option<Rc<dyn Fn(bool)>>Called once with the new checked value after activation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EuvDropdownMenuCheckboxItemProps
impl !Send for EuvDropdownMenuCheckboxItemProps
impl !Sync for EuvDropdownMenuCheckboxItemProps
impl !UnwindSafe for EuvDropdownMenuCheckboxItemProps
impl Forget for EuvDropdownMenuCheckboxItemProps
impl Freeze for EuvDropdownMenuCheckboxItemProps
impl Move for EuvDropdownMenuCheckboxItemProps
impl Unpin for EuvDropdownMenuCheckboxItemProps
impl UnsafeUnpin for EuvDropdownMenuCheckboxItemProps
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