Struct ybc::RadioProps
source · pub struct RadioProps {
pub name: String,
pub value: String,
pub checked_value: Option<String>,
pub update: Callback<String>,
pub children: Children,
pub classes: Classes,
pub disabled: bool,
}
Fields§
§name: String
The name
attribute for this form element.
All members of the same radio group must have the same value for their name
attribute.
value: String
The value
attribute for this form element.
This is different from other form elements, as this value does not change. It represents the value to be used for the radio group overall when this element is selected.
checked_value: Option<String>
The value of the currently selected radio of this radio group.
update: Callback<String>
The callback to be used for propagating changes to the selected radio of the radio group.
children: Children
§classes: Classes
§disabled: bool
Disable this component.
Trait Implementations§
source§impl Clone for RadioProps
impl Clone for RadioProps
source§fn clone(&self) -> RadioProps
fn clone(&self) -> RadioProps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RadioProps
impl Debug for RadioProps
source§impl PartialEq<RadioProps> for RadioProps
impl PartialEq<RadioProps> for RadioProps
source§fn eq(&self, other: &RadioProps) -> bool
fn eq(&self, other: &RadioProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for RadioProps
impl Properties for RadioProps
impl StructuralPartialEq for RadioProps
Auto Trait Implementations§
impl !RefUnwindSafe for RadioProps
impl !Send for RadioProps
impl !Sync for RadioProps
impl Unpin for RadioProps
impl !UnwindSafe for RadioProps
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
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.