pub struct TextFieldProps<'a> {Show 33 fields
pub open: bool,
pub value: Option<String>,
pub field_type: TextFieldType,
pub label: Option<String>,
pub placeholder: Option<String>,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub icon: Option<String>,
pub icon_trailing: Option<String>,
pub disabled: bool,
pub char_counter: bool,
pub outlined: bool,
pub helper: Option<String>,
pub helper_persistent: bool,
pub required: bool,
pub max_length: Option<u64>,
pub validation_message: Option<String>,
pub pattern: Option<String>,
pub min: Option<String>,
pub max: Option<String>,
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: Option<StaticCallback<String>>,
pub name: Option<String>,
pub webkit_date_picker: bool,
pub _onchange: Option<StaticCallback<String>>,
pub style: String,
pub class: String,
pub slot: Option<String>,
pub dialog_initial_focus: bool,
/* private fields */
}Expand description
Fields§
§open: bool§value: Option<String>§field_type: TextFieldType§label: Option<String>§placeholder: Option<String>§prefix: Option<String>§suffix: Option<String>§icon: Option<String>§icon_trailing: Option<String>§disabled: bool§char_counter: bool§outlined: bool§helper: Option<String>§helper_persistent: bool§required: bool§max_length: Option<u64>§validation_message: Option<String>§pattern: Option<String>§min: Option<String>Type: number | string so I’ll leave it as a string
max: Option<String>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: Option<StaticCallback<String>>§name: Option<String>§webkit_date_picker: bool§_onchange: Option<StaticCallback<String>>§style: String§class: String§slot: Option<String>§dialog_initial_focus: boolImplementations§
Source§impl<'a> TextFieldProps<'a>
impl<'a> TextFieldProps<'a>
Sourcepub fn builder() -> TextFieldPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> TextFieldPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building TextFieldProps.
On the builder, call .open(...)(optional), .value(...)(optional), .field_type(...)(optional), .label(...)(optional), .placeholder(...)(optional), .prefix(...)(optional), .suffix(...)(optional), .icon(...)(optional), .icon_trailing(...)(optional), .disabled(...)(optional), .char_counter(...)(optional), .outlined(...)(optional), .helper(...)(optional), .helper_persistent(...)(optional), .required(...)(optional), .max_length(...)(optional), .validation_message(...)(optional), .pattern(...)(optional), .min(...)(optional), .max(...)(optional), .size(...)(optional), .step(...)(optional), .auto_validate(...)(optional), .validity_transform(...)(optional), .validate_on_initial_render(...)(optional), ._oninput(...)(optional), ._lifetime(...)(optional), .name(...)(optional), .webkit_date_picker(...)(optional), ._onchange(...)(optional), .style(...)(optional), .class(...)(optional), .slot(...)(optional), .dialog_initial_focus(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TextFieldProps.
Trait Implementations§
Source§impl<'a> Properties for TextFieldProps<'a>
impl<'a> Properties for TextFieldProps<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextFieldProps<'a>
impl<'a> !RefUnwindSafe for TextFieldProps<'a>
impl<'a> !Send for TextFieldProps<'a>
impl<'a> !Sync for TextFieldProps<'a>
impl<'a> Unpin for TextFieldProps<'a>
impl<'a> !UnwindSafe for TextFieldProps<'a>
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.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, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more