Struct material_yew::text_inputs::TextFieldProps
source · pub struct TextFieldProps {Show 28 fields
pub open: bool,
pub value: Option<AttrValue>,
pub field_type: TextFieldType,
pub label: Option<AttrValue>,
pub placeholder: Option<AttrValue>,
pub prefix: Option<AttrValue>,
pub suffix: Option<AttrValue>,
pub icon: Option<AttrValue>,
pub icon_trailing: Option<AttrValue>,
pub disabled: bool,
pub char_counter: bool,
pub outlined: bool,
pub helper: Option<AttrValue>,
pub helper_persistent: bool,
pub required: bool,
pub max_length: Option<u64>,
pub validation_message: Option<AttrValue>,
pub pattern: Option<AttrValue>,
pub min: Option<AttrValue>,
pub max: Option<AttrValue>,
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<String>,
pub name: Option<AttrValue>,
pub component_link: WeakComponentLink<MatTextField>,
}
Expand description
Fields§
§open: bool
§value: Option<AttrValue>
§field_type: TextFieldType
§label: Option<AttrValue>
§placeholder: Option<AttrValue>
§prefix: Option<AttrValue>
§suffix: Option<AttrValue>
§icon: Option<AttrValue>
§icon_trailing: Option<AttrValue>
§disabled: bool
§char_counter: bool
§outlined: bool
§helper: Option<AttrValue>
§helper_persistent: bool
§required: bool
§max_length: Option<u64>
§validation_message: Option<AttrValue>
§pattern: Option<AttrValue>
§min: Option<AttrValue>
Type: number | string
so I’ll leave it as a string
max: Option<AttrValue>
Type: number | string
so I’ll leave it as a string
size: Option<i64>
§step: Option<i64>
§auto_validate: bool
§validity_transform: Option<ValidityTransform>
§validate_on_initial_render: bool
§oninput: Callback<String>
§name: Option<AttrValue>
§component_link: WeakComponentLink<MatTextField>
Trait Implementations§
source§impl Clone for TextFieldProps
impl Clone for TextFieldProps
source§fn clone(&self) -> TextFieldProps
fn clone(&self) -> TextFieldProps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<TextFieldProps> for TextFieldProps
impl PartialEq<TextFieldProps> for TextFieldProps
source§fn eq(&self, other: &TextFieldProps) -> bool
fn eq(&self, other: &TextFieldProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for TextFieldProps
impl Properties for TextFieldProps
impl StructuralPartialEq for TextFieldProps
Auto Trait Implementations§
impl !RefUnwindSafe for TextFieldProps
impl !Send for TextFieldProps
impl !Sync for TextFieldProps
impl Unpin for TextFieldProps
impl !UnwindSafe for TextFieldProps
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.