[][src]Struct ybc::RadioProps

pub struct RadioProps {
    pub name: String,
    pub value: String,
    pub checked_value: Option<String>,
    pub update: Callback<String>,
    pub children: Children,
    pub classes: Option<String>,
    pub disabled: bool,


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: Childrenclasses: Option<String>disabled: bool

Disable this component.

Trait Implementations

impl Clone for RadioProps[src]

impl Debug for RadioProps[src]

impl PartialEq<RadioProps> for RadioProps[src]

impl Properties for RadioProps[src]

type Builder = RadioPropsBuilder<RadioPropsBuilderStep_missing_required_prop_checked_value>

Builder that will be used to construct properties

impl StructuralPartialEq for RadioProps[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> NeqAssign<U> for T where
    T: BorrowMut<U>,
    U: PartialEq<U>, 

impl<T, U> NeqAssignBy<U> for T where
    T: BorrowMut<U>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.