pub struct EuvDropdownMenuRadioGroupState {
pub value: Signal<String>,
pub controlled: bool,
pub on_value_change: Option<Rc<dyn Fn(String)>>,
}Expand description
Explicit shared selection created by use_dropdown_menu_radio_group.
Clone this handle into the group and each item; no inherited context is used.
Fields§
§value: Signal<String>The single source of truth for this group’s selected value.
controlled: boolWhether only the caller may update the value signal.
on_value_change: Option<Rc<dyn Fn(String)>>Requests a different value, after updating an uncontrolled signal.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EuvDropdownMenuRadioGroupState
impl !Send for EuvDropdownMenuRadioGroupState
impl !Sync for EuvDropdownMenuRadioGroupState
impl !UnwindSafe for EuvDropdownMenuRadioGroupState
impl Forget for EuvDropdownMenuRadioGroupState
impl Freeze for EuvDropdownMenuRadioGroupState
impl Move for EuvDropdownMenuRadioGroupState
impl Unpin for EuvDropdownMenuRadioGroupState
impl UnsafeUnpin for EuvDropdownMenuRadioGroupState
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