Struct material_yew::text_inputs::TextFieldProps[][src]

pub struct TextFieldProps {
Show fields pub open: bool, pub value: Cow<'static, str>, pub field_type: TextFieldType, pub label: Cow<'static, str>, pub placeholder: Cow<'static, str>, pub prefix: Cow<'static, str>, pub suffix: Cow<'static, str>, pub icon: Cow<'static, str>, pub icon_trailing: Cow<'static, str>, pub disabled: bool, pub char_counter: bool, pub outlined: bool, pub helper: Cow<'static, str>, pub helper_persistent: bool, pub required: bool, pub max_length: Option<u64>, pub validation_message: Cow<'static, str>, pub pattern: Cow<'static, str>, pub min: Cow<'static, str>, pub max: Cow<'static, str>, pub size: Option<i64>, pub step: Option<i64>, pub auto_validate: bool, pub validity_transform: Option<ValidityTransform>, pub validate_on_initial_render: bool, pub oninput: Callback<InputData>, pub name: Cow<'static, str>,
}
Expand description

Props for MatTextField

MWC Documentation:

Fields

open: boolvalue: Cow<'static, str>field_type: TextFieldTypelabel: Cow<'static, str>placeholder: Cow<'static, str>prefix: Cow<'static, str>suffix: Cow<'static, str>icon: Cow<'static, str>icon_trailing: Cow<'static, str>disabled: boolchar_counter: booloutlined: boolhelper: Cow<'static, str>helper_persistent: boolrequired: boolmax_length: Option<u64>validation_message: Cow<'static, str>pattern: Cow<'static, str>min: Cow<'static, str>

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

max: Cow<'static, str>

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

size: Option<i64>step: Option<i64>auto_validate: boolvalidity_transform: Option<ValidityTransform>validate_on_initial_render: booloninput: Callback<InputData>name: Cow<'static, str>

Trait Implementations

impl Clone for TextFieldProps[src]

fn clone(&self) -> TextFieldProps[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Properties for TextFieldProps[src]

type Builder = TextFieldPropsBuilder<TextFieldPropsBuilderStep_build>

Builder that will be used to construct properties

fn builder() -> Self::Builder[src]

Entrypoint for building properties

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, V> IntoOptPropValue<V> for T where
    T: IntoPropValue<Option<V>>, 
[src]

pub fn into_opt_prop_value(self) -> Option<V>[src]

Convert self to an optional value of a Properties struct.

impl<T> IntoPropValue<Option<T>> for T[src]

pub fn into_prop_value(self) -> Option<T>[src]

Convert self to a value of a Properties struct.

impl<T> IntoPropValue<T> for T[src]

pub fn into_prop_value(self) -> T[src]

Convert self to a value of a Properties struct.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

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

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.