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 duplicate 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 for TextFieldProps
impl PartialEq for TextFieldProps
Source§impl Properties for TextFieldProps
impl Properties for TextFieldProps
impl StructuralPartialEq for TextFieldProps
Auto Trait Implementations§
impl Freeze for TextFieldProps
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.