pub struct EuvRadioGroupProps {
pub name: &'static str,
pub options: Vec<EuvRadioOption>,
pub value: Signal<String>,
pub label: &'static str,
}Expand description
Props for the euv_radio component.
Defines the strongly-typed interface for a radio group. The selection
is owned by the caller through a Signal<String> so the group can
take part in two-way binding with the rest of the page.
Fields§
§name: &'static strThe HTML name attribute shared by every radio in the group.
options: Vec<EuvRadioOption>The selectable options rendered in declaration order.
value: Signal<String>The signal holding the currently selected option value.
label: &'static strThe group label text displayed above the options.
Implementations§
Source§impl EuvRadioGroupProps
impl EuvRadioGroupProps
pub fn get_name(&self) -> &'static str
pub fn get_mut_name(&mut self) -> &mut &'static str
pub fn set_name(&mut self, val: &'static str) -> &mut Self
pub fn get_options(&self) -> &Vec<EuvRadioOption>
pub fn get_mut_options(&mut self) -> &mut Vec<EuvRadioOption>
pub fn set_options(&mut self, val: Vec<EuvRadioOption>) -> &mut Self
pub fn get_value(&self) -> Signal<String>
pub fn get_mut_value(&mut self) -> &mut Signal<String>
pub fn set_value(&mut self, val: Signal<String>) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvRadioGroupProps
impl Clone for EuvRadioGroupProps
Source§impl Debug for EuvRadioGroupProps
impl Debug for EuvRadioGroupProps
Auto Trait Implementations§
impl Freeze for EuvRadioGroupProps
impl RefUnwindSafe for EuvRadioGroupProps
impl Send for EuvRadioGroupProps
impl Sync for EuvRadioGroupProps
impl Unpin for EuvRadioGroupProps
impl UnsafeUnpin for EuvRadioGroupProps
impl UnwindSafe for EuvRadioGroupProps
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