pub struct TextFieldBuilder { /* private fields */ }Expand description
Configuration handle returned by text_field.
Implementations§
Source§impl TextFieldBuilder
impl TextFieldBuilder
Sourcepub fn enabled_optional(&self, value: Option<bool>) -> Self
pub fn enabled_optional(&self, value: Option<bool>) -> Self
Configure enabled before this component executes.
Sourcepub fn presentation_state(&self, value: InteractionVisualState) -> Self
pub fn presentation_state(&self, value: InteractionVisualState) -> Self
Configure presentation_state before this component executes.
Sourcepub fn presentation_state_optional(
&self,
value: Option<InteractionVisualState>,
) -> Self
pub fn presentation_state_optional( &self, value: Option<InteractionVisualState>, ) -> Self
Configure presentation_state before this component executes.
Sourcepub fn read_only(&self, value: bool) -> Self
pub fn read_only(&self, value: bool) -> Self
Configure read_only before this component executes.
Sourcepub fn read_only_optional(&self, value: Option<bool>) -> Self
pub fn read_only_optional(&self, value: Option<bool>) -> Self
Configure read_only before this component executes.
Sourcepub fn is_error_optional(&self, value: Option<bool>) -> Self
pub fn is_error_optional(&self, value: Option<bool>) -> Self
Configure is_error before this component executes.
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn on_change<F>(&self, value: F) -> Self
pub fn on_change<F>(&self, value: F) -> Self
Configure on_change before this component executes.
Configure on_change before this component executes.
Sourcepub fn on_change_optional(
&self,
value: Option<CallbackWith<String, String>>,
) -> Self
pub fn on_change_optional( &self, value: Option<CallbackWith<String, String>>, ) -> Self
Configure on_change before this component executes.
Sourcepub fn on_submit<F>(&self, value: F) -> Self
pub fn on_submit<F>(&self, value: F) -> Self
Configure on_submit before this component executes.
Configure on_submit before this component executes.
Sourcepub fn on_submit_optional(&self, value: Option<Callback>) -> Self
pub fn on_submit_optional(&self, value: Option<Callback>) -> Self
Configure on_submit before this component executes.
Sourcepub fn min_width_optional(&self, value: Option<Dp>) -> Self
pub fn min_width_optional(&self, value: Option<Dp>) -> Self
Configure min_width before this component executes.
Sourcepub fn min_height(&self, value: Dp) -> Self
pub fn min_height(&self, value: Dp) -> Self
Configure min_height before this component executes.
Sourcepub fn min_height_optional(&self, value: Option<Dp>) -> Self
pub fn min_height_optional(&self, value: Option<Dp>) -> Self
Configure min_height before this component executes.
Sourcepub fn background_color(&self, value: Color) -> Self
pub fn background_color(&self, value: Color) -> Self
Configure background_color before this component executes.
Sourcepub fn background_color_optional(&self, value: Option<Color>) -> Self
pub fn background_color_optional(&self, value: Option<Color>) -> Self
Configure background_color before this component executes.
Sourcepub fn border_width(&self, value: Dp) -> Self
pub fn border_width(&self, value: Dp) -> Self
Configure border_width before this component executes.
Sourcepub fn border_width_optional(&self, value: Option<Dp>) -> Self
pub fn border_width_optional(&self, value: Option<Dp>) -> Self
Configure border_width before this component executes.
Sourcepub fn border_color(&self, value: Color) -> Self
pub fn border_color(&self, value: Color) -> Self
Configure border_color before this component executes.
Sourcepub fn border_color_optional(&self, value: Option<Color>) -> Self
pub fn border_color_optional(&self, value: Option<Color>) -> Self
Configure border_color before this component executes.
Sourcepub fn shape_optional(&self, value: Option<Shape>) -> Self
pub fn shape_optional(&self, value: Option<Shape>) -> Self
Configure shape before this component executes.
Sourcepub fn padding_optional(&self, value: Option<Dp>) -> Self
pub fn padding_optional(&self, value: Option<Dp>) -> Self
Configure padding before this component executes.
Sourcepub fn horizontal_padding(&self, value: Dp) -> Self
pub fn horizontal_padding(&self, value: Dp) -> Self
Configure horizontal_padding before this component executes.
Sourcepub fn horizontal_padding_optional(&self, value: Option<Dp>) -> Self
pub fn horizontal_padding_optional(&self, value: Option<Dp>) -> Self
Configure horizontal_padding before this component executes.
Sourcepub fn focus_border_color(&self, value: Color) -> Self
pub fn focus_border_color(&self, value: Color) -> Self
Configure focus_border_color before this component executes.
Sourcepub fn focus_border_color_optional(&self, value: Option<Color>) -> Self
pub fn focus_border_color_optional(&self, value: Option<Color>) -> Self
Configure focus_border_color before this component executes.
Sourcepub fn focus_border_width(&self, value: Dp) -> Self
pub fn focus_border_width(&self, value: Dp) -> Self
Configure focus_border_width before this component executes.
Sourcepub fn focus_border_width_optional(&self, value: Option<Dp>) -> Self
pub fn focus_border_width_optional(&self, value: Option<Dp>) -> Self
Configure focus_border_width before this component executes.
Sourcepub fn focus_background_color(&self, value: Color) -> Self
pub fn focus_background_color(&self, value: Color) -> Self
Configure focus_background_color before this component executes.
Sourcepub fn focus_background_color_optional(&self, value: Option<Color>) -> Self
pub fn focus_background_color_optional(&self, value: Option<Color>) -> Self
Configure focus_background_color before this component executes.
Sourcepub fn selection_color(&self, value: Color) -> Self
pub fn selection_color(&self, value: Color) -> Self
Configure selection_color before this component executes.
Sourcepub fn selection_color_optional(&self, value: Option<Color>) -> Self
pub fn selection_color_optional(&self, value: Option<Color>) -> Self
Configure selection_color before this component executes.
Sourcepub fn text_color(&self, value: Color) -> Self
pub fn text_color(&self, value: Color) -> Self
Configure text_color before this component executes.
Sourcepub fn text_color_optional(&self, value: Option<Color>) -> Self
pub fn text_color_optional(&self, value: Option<Color>) -> Self
Configure text_color before this component executes.
Sourcepub fn cursor_color(&self, value: Color) -> Self
pub fn cursor_color(&self, value: Color) -> Self
Configure cursor_color before this component executes.
Sourcepub fn cursor_color_optional(&self, value: Option<Color>) -> Self
pub fn cursor_color_optional(&self, value: Option<Color>) -> Self
Configure cursor_color before this component executes.
Sourcepub fn accessibility_label(&self, value: impl Into<String>) -> Self
pub fn accessibility_label(&self, value: impl Into<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_label_optional(&self, value: Option<String>) -> Self
pub fn accessibility_label_optional(&self, value: Option<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_description(&self, value: impl Into<String>) -> Self
pub fn accessibility_description(&self, value: impl Into<String>) -> Self
Configure accessibility_description before this component executes.
Sourcepub fn accessibility_description_optional(&self, value: Option<String>) -> Self
pub fn accessibility_description_optional(&self, value: Option<String>) -> Self
Configure accessibility_description before this component executes.
Sourcepub fn initial_text(&self, value: impl Into<String>) -> Self
pub fn initial_text(&self, value: impl Into<String>) -> Self
Configure initial_text before this component executes.
Sourcepub fn initial_text_optional(&self, value: Option<String>) -> Self
pub fn initial_text_optional(&self, value: Option<String>) -> Self
Configure initial_text before this component executes.
Sourcepub fn font_size_optional(&self, value: Option<Dp>) -> Self
pub fn font_size_optional(&self, value: Option<Dp>) -> Self
Configure font_size before this component executes.
Sourcepub fn line_height(&self, value: Dp) -> Self
pub fn line_height(&self, value: Dp) -> Self
Configure line_height before this component executes.
Sourcepub fn line_height_optional(&self, value: Option<Dp>) -> Self
pub fn line_height_optional(&self, value: Option<Dp>) -> Self
Configure line_height before this component executes.
Sourcepub fn style_optional(&self, value: Option<TextStyle>) -> Self
pub fn style_optional(&self, value: Option<TextStyle>) -> Self
Configure style before this component executes.
Sourcepub fn label(&self, value: impl Into<String>) -> Self
pub fn label(&self, value: impl Into<String>) -> Self
Configure label before this component executes.
Sourcepub fn label_optional(&self, value: Option<String>) -> Self
pub fn label_optional(&self, value: Option<String>) -> Self
Configure label before this component executes.
Sourcepub fn placeholder(&self, value: impl Into<String>) -> Self
pub fn placeholder(&self, value: impl Into<String>) -> Self
Configure placeholder before this component executes.
Sourcepub fn placeholder_optional(&self, value: Option<String>) -> Self
pub fn placeholder_optional(&self, value: Option<String>) -> Self
Configure placeholder before this component executes.
Sourcepub fn leading_icon<F, Output>(&self, value: F) -> Self
pub fn leading_icon<F, Output>(&self, value: F) -> Self
Configure leading_icon before this component executes.
Configure leading_icon before this component executes.
Sourcepub fn leading_icon_optional(&self, value: Option<RenderSlot>) -> Self
pub fn leading_icon_optional(&self, value: Option<RenderSlot>) -> Self
Configure leading_icon before this component executes.
Sourcepub fn trailing_icon<F, Output>(&self, value: F) -> Self
pub fn trailing_icon<F, Output>(&self, value: F) -> Self
Configure trailing_icon before this component executes.
Configure trailing_icon before this component executes.
Sourcepub fn trailing_icon_optional(&self, value: Option<RenderSlot>) -> Self
pub fn trailing_icon_optional(&self, value: Option<RenderSlot>) -> Self
Configure trailing_icon before this component executes.
Sourcepub fn prefix<F, Output>(&self, value: F) -> Self
pub fn prefix<F, Output>(&self, value: F) -> Self
Configure prefix before this component executes.
Configure prefix before this component executes.
Sourcepub fn prefix_optional(&self, value: Option<RenderSlot>) -> Self
pub fn prefix_optional(&self, value: Option<RenderSlot>) -> Self
Configure prefix before this component executes.
Sourcepub fn suffix<F, Output>(&self, value: F) -> Self
pub fn suffix<F, Output>(&self, value: F) -> Self
Configure suffix before this component executes.
Configure suffix before this component executes.
Sourcepub fn suffix_optional(&self, value: Option<RenderSlot>) -> Self
pub fn suffix_optional(&self, value: Option<RenderSlot>) -> Self
Configure suffix before this component executes.
Sourcepub fn show_indicator(&self, value: bool) -> Self
pub fn show_indicator(&self, value: bool) -> Self
Configure show_indicator before this component executes.
Sourcepub fn show_indicator_optional(&self, value: Option<bool>) -> Self
pub fn show_indicator_optional(&self, value: Option<bool>) -> Self
Configure show_indicator before this component executes.
Sourcepub fn line_limit(&self, value: TextFieldLineLimit) -> Self
pub fn line_limit(&self, value: TextFieldLineLimit) -> Self
Configure line_limit before this component executes.
Sourcepub fn line_limit_optional(&self, value: Option<TextFieldLineLimit>) -> Self
pub fn line_limit_optional(&self, value: Option<TextFieldLineLimit>) -> Self
Configure line_limit before this component executes.
Configure context_menu before this component executes.
Configure context_menu before this component executes.
Sourcepub fn input_transform<F>(&self, value: F) -> Self
pub fn input_transform<F>(&self, value: F) -> Self
Configure input_transform before this component executes.
Configure input_transform before this component executes.
Sourcepub fn input_transform_optional(
&self,
value: Option<CallbackWith<String, String>>,
) -> Self
pub fn input_transform_optional( &self, value: Option<CallbackWith<String, String>>, ) -> Self
Configure input_transform before this component executes.
Sourcepub fn obfuscation_char(&self, value: char) -> Self
pub fn obfuscation_char(&self, value: char) -> Self
Configure obfuscation_char before this component executes.
Sourcepub fn obfuscation_char_optional(&self, value: Option<char>) -> Self
pub fn obfuscation_char_optional(&self, value: Option<char>) -> Self
Configure obfuscation_char before this component executes.
Sourcepub fn controller(&self, value: State<TextInputController>) -> Self
pub fn controller(&self, value: State<TextInputController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<TextInputController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<TextInputController>>, ) -> Self
Configure controller before this component executes.
Auto Trait Implementations§
impl Freeze for TextFieldBuilder
impl RefUnwindSafe for TextFieldBuilder
impl Send for TextFieldBuilder
impl Sync for TextFieldBuilder
impl Unpin for TextFieldBuilder
impl UnsafeUnpin for TextFieldBuilder
impl UnwindSafe for TextFieldBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.