[][src]Struct yew::components::select::Props

pub struct Props<T> {
    pub selected: Option<T>,
    pub disabled: bool,
    pub options: Vec<T>,
    pub onchange: Callback<T>,
}

Properties of Select component.

Fields

selected: Option<T>

Initially selected value.

disabled: bool

Disabled the component's selector.

options: Vec<T>

Options are available to choose.

onchange: Callback<T>

Callback to handle changes.

Trait Implementations

impl<T> Properties for Props<T>[src]

type Builder = PropsBuilder<Props_onchange_is_required, T>

Builder that will be used to construct properties

impl<T: PartialEq> PartialEq<Props<T>> for Props<T>[src]

Auto Trait Implementations

impl<T> !Sync for Props<T>

impl<T> !Send for Props<T>

impl<T> Unpin for Props<T> where
    T: Unpin

impl<T> !RefUnwindSafe for Props<T>

impl<T> !UnwindSafe for Props<T>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: Any
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.