[][src]Struct yew_styles::forms::form_select::Props

pub struct Props {
    pub options: Html,
    pub onchange_signal: Callback<ChangeData>,
    pub disabled: bool,
    pub select_size: Size,
    pub name: String,
    pub required: bool,
    pub multiple: bool,
    pub size: u16,
    pub autofocus: bool,
    pub code_ref: NodeRef,
    pub key: String,
    pub class_name: String,
    pub error_state: bool,
    pub error_message: String,
    pub id: String,
}

Fields

options: Html

Different options to select. Required

onchange_signal: Callback<ChangeData>disabled: bool

Whether or not the selector should be disabled.

select_size: Size

The size of the select. Default Size::Medium

name: String

The name of the input

required: bool

A value is required or must be check for the form to be submittable. Default false

multiple: bool

Whether to allow multiple values. Default false

size: u16

If the control is presented as a scrolling list box, this attribute represents the number of rows in the list that should be visible at one time

autofocus: bool

Automatically focus the form control when the page is loaded. Default false

code_ref: NodeRef

General property to get the ref of the component

key: String

General property to add keys

class_name: String

General property to add custom class styles

error_state: bool

Error state for validation. Default false

error_message: String

show error message when error_state is true.

id: String

general property to add custom id

Trait Implementations

impl Clone for Props[src]

impl PartialEq<Props> for Props[src]

impl Properties for Props[src]

type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_onchange_signal>

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,