Struct ymc::select::Props[][src]

pub struct Props {
    pub value: String,
    pub label: String,
    pub natural_menu_width: bool,
    pub icon: String,
    pub disabled: bool,
    pub outlined: bool,
    pub helper: String,
    pub required: bool,
    pub validation_message: String,
    pub items: String,
    pub index: i64,
    pub validate_on_initial_render: bool,
    pub children: Children,
    pub select_link: WeakComponentLink<Select>,
    pub onopened: Callback<()>,
    pub onclosed: Callback<()>,
    pub onaction: Callback<ActionDetail>,
    pub onselected: Callback<SelectedDetail>,
}

Props for Select

Documentation:

Fields

value: Stringlabel: Stringnatural_menu_width: boolicon: Stringdisabled: booloutlined: boolhelper: Stringrequired: boolvalidation_message: Stringitems: Stringindex: i64validate_on_initial_render: boolchildren: Childrenselect_link: WeakComponentLink<Select>

[WeakComponentLink] for List which provides the following methods

  • select(&self)

See [WeakComponentLink] documentation for more information

onopened: Callback<()>

Binds to opened event on select-surface

See events docs to learn more.

onclosed: Callback<()>

Binds to closed event on select-surface

See events docs to learn more.

onaction: Callback<ActionDetail>

Binds to action event on list

See events docs to learn more.

onselected: Callback<SelectedDetail>

Binds to selected event on list

See events docs to learn more.

Trait Implementations

impl Clone for Props[src]

impl PartialEq<Props> for Props[src]

impl Properties for Props[src]

type Builder = PropsBuilder<PropsBuilderStep_build>

Builder that will be used to construct properties

impl StructuralPartialEq for Props[src]

Auto Trait Implementations

impl !RefUnwindSafe for Props

impl !Send for Props

impl !Sync for Props

impl Unpin for Props

impl !UnwindSafe for Props

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

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>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.