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

pub struct Props {
    pub value: String,
    pub input_content_type: InputType,
    pub input_type: Palette,
    pub input_size: Size,
    pub oninput_signal: Callback<InputData>,
    pub onblur_signal: Callback<FocusEvent>,
    pub onkeydown_signal: Callback<KeyboardEvent>,
    pub onchange_signal: Callback<ChangeData>,
    pub placeholder: String,
    pub checked: bool,
    pub class_name: String,
    pub id: String,
    pub name: String,
    pub accept: String,
    pub alt: String,
    pub autofocus: bool,
    pub autocomplete: bool,
    pub list: String,
    pub min: u16,
    pub max: u16,
    pub minlength: u16,
    pub maxlength: u16,
    pub pattern: String,
    pub readonly: bool,
    pub required: bool,
    pub disabled: bool,
    pub multiple: bool,
    pub underline: bool,
    pub capture: String,
    pub step: i16,
    pub error_state: bool,
    pub error_message: String,
}

Fields

value: String

Current value of the form control. Required

input_content_type: InputType

The input type

input_type: Palette

The input style according with the purpose

input_size: Size

The size of the input

oninput_signal: Callback<InputData>

Signal to emit the event input

onblur_signal: Callback<FocusEvent>

Signal to emit the event blur

onkeydown_signal: Callback<KeyboardEvent>

Signal to emit the event keypress

onchange_signal: Callback<ChangeData>

Signal to emit the event change

placeholder: String

Content to be appear in the form control when the form control is empty

checked: bool

Whether the command or control is checked

class_name: String

General property to add custom class styles

id: String

General property to add custom id

name: String

The name of the input

accept: String

Hint for expected file type in file upload controls

alt: String

Alt attribute for the image type

autofocus: bool

Automatically focus the form control when the page is loaded

autocomplete: bool

Hint for form autofill feature

list: String

Value of the id attribute of the "datalist" of autocomplete options

min: u16

Minimum value

max: u16

Maximum value

minlength: u16

Minimum length (number of characters) of value

maxlength: u16

Maximum length (number of characters) of value

pattern: String

Pattern the value must match to be valid

readonly: bool

The value is not editable

required: bool

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

disabled: bool

Whether the form control is disabled

multiple: bool

Whether to allow multiple values

underline: bool

Underline style instead of box, like Material

capture: String

Media capture input method in file upload controls

step: i16

Incremental values that are valid

error_state: bool

Error state for validation

error_message: String

Show error message when error_state is true

Trait Implementations

impl Clone for Props[src]

impl Properties for Props[src]

type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_value>

Builder that will be used to construct properties

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>,