pub struct RadioProperties {Show 17 fields
pub class: Classes,
pub input_class: Classes,
pub id: Option<String>,
pub name: Option<AttrValue>,
pub value: Option<AttrValue>,
pub children: Children,
pub checked: bool,
pub reversed: bool,
pub disabled: bool,
pub description: Option<Html>,
pub body: Option<Html>,
pub onchange: Callback<()>,
pub input_onclick: Option<Callback<MouseEvent>>,
pub force_label: bool,
pub ouia_id: Option<String>,
pub ouia_type: OuiaComponentType,
pub ouia_safe: OuiaSafe,
}Expand description
Properties for Radio.
Fields§
§class: ClassesAdditional classes added to the radio button.
input_class: ClassesAdditional classes added to the underlying input tag.
id: Option<String>§name: Option<AttrValue>The input control name, used to group radio buttons together.
value: Option<AttrValue>§children: ChildrenThe radio button label content.
checked: bool§reversed: bool§disabled: bool§description: Option<Html>A longer description text.
body: Option<Html>Additional content aligned with the label.
onchange: Callback<()>Event fired when the radio button is checked (but not when unchecked).
input_onclick: Option<Callback<MouseEvent>>Event fired when any part of the input is clicked. If you only want something to happen
when the radio button itself is clicked then use onchange.
force_label: boolCreates a non-standalone input with a label, even if there are no children to this radio.
ouia_id: Option<String>OUIA Component id
ouia_type: OuiaComponentTypeOUIA Component Type
ouia_safe: OuiaSafeOUIA Component Safe
Trait Implementations§
Source§impl PartialEq for RadioProperties
impl PartialEq for RadioProperties
Source§impl Properties for RadioProperties
impl Properties for RadioProperties
impl StructuralPartialEq for RadioProperties
Auto Trait Implementations§
impl Freeze for RadioProperties
impl !RefUnwindSafe for RadioProperties
impl !Send for RadioProperties
impl !Sync for RadioProperties
impl Unpin for RadioProperties
impl !UnwindSafe for RadioProperties
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.