pub struct EuvContextMenuRadioGroupState {
pub value: Signal<String>,
pub controlled: bool,
pub on_value_change: Option<Rc<dyn Fn(String)>>,
}Expand description
Explicit group context shared by the container and its radio items.
Create this handle with use_context_menu_radio_group and clone it for
each part. The framework has no inherited component-context API.
Fields§
§value: Signal<String>The single source of truth for all checked states in this group.
controlled: boolWhether selection is controlled by the caller’s change callback.
on_value_change: Option<Rc<dyn Fn(String)>>Called only when activation requests a different value.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EuvContextMenuRadioGroupState
impl !Send for EuvContextMenuRadioGroupState
impl !Sync for EuvContextMenuRadioGroupState
impl !UnwindSafe for EuvContextMenuRadioGroupState
impl Forget for EuvContextMenuRadioGroupState
impl Freeze for EuvContextMenuRadioGroupState
impl Move for EuvContextMenuRadioGroupState
impl Unpin for EuvContextMenuRadioGroupState
impl UnsafeUnpin for EuvContextMenuRadioGroupState
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