Struct ymc::text_inputs::TextFieldProps[][src]

pub struct TextFieldProps {
    pub open: bool,
    pub value: String,
    pub field_type: TextFieldType,
    pub label: String,
    pub placeholder: String,
    pub prefix: String,
    pub suffix: String,
    pub icon: String,
    pub icon_trailing: String,
    pub disabled: bool,
    pub char_counter: bool,
    pub outlined: bool,
    pub helper: String,
    pub helper_persistent: bool,
    pub required: bool,
    pub max_length: String,
    pub validation_message: String,
    pub pattern: String,
    pub min: String,
    pub max: String,
    pub size: Option<i64>,
    pub step: Option<i64>,
    pub auto_validate: bool,
    pub validate_on_initial_render: bool,
    pub oninput: Callback<InputData>,
    pub name: String,
}

Props for TextField

Documentation:

Fields

open: boolvalue: Stringfield_type: TextFieldTypelabel: Stringplaceholder: Stringprefix: Stringsuffix: Stringicon: Stringicon_trailing: Stringdisabled: boolchar_counter: booloutlined: boolhelper: Stringhelper_persistent: boolrequired: boolmax_length: Stringvalidation_message: Stringpattern: Stringmin: String

Type: number | string so I’ll leave it as a string

max: String

Type: number | string so I’ll leave it as a string

size: Option<i64>step: Option<i64>auto_validate: boolvalidate_on_initial_render: booloninput: Callback<InputData>name: String

Trait Implementations

impl Clone for TextFieldProps[src]

impl Properties for TextFieldProps[src]

type Builder = TextFieldPropsBuilder<TextFieldPropsBuilderStep_build>

Builder that will be used to construct properties

Auto Trait Implementations

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.