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

pub struct Props {
Show 15 fields 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Builder that will be used to construct properties

Entrypoint for building properties

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an optional value of a Properties struct.

Convert self to a value of a Properties struct.

Convert self to a value of a Properties struct.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.