pub struct Textfield {Show 29 fields
pub autocorrect: Option<bool>,
pub autofill_hints: Option<StylesAutofillHints>,
pub autofocus: Option<bool>,
pub build_counter: Option<Listener>,
pub drag_start_behavior: Option<StylesDragStartBehavior>,
pub enable_interactive_selection: Option<bool>,
pub enabled: Option<bool>,
pub expands: Option<bool>,
pub keyboard_type: Option<StylesTextInputType>,
pub max_length: Option<i64>,
pub max_length_enforcement: Option<StylesMaxLengthEnforcement>,
pub max_lines: Option<i64>,
pub min_lines: Option<i64>,
pub name: Option<String>,
pub obscure_text: Option<bool>,
pub on_app_private_command: Option<Listener>,
pub on_changed: Option<Listener>,
pub on_editing_complete: Option<Listener>,
pub on_submitted: Option<Listener>,
pub on_tap: Option<Listener>,
pub read_only: Option<bool>,
pub show_cursor: Option<bool>,
pub style: Option<StylesTextFieldStyle>,
pub text_capitalization: Option<StylesTextCapitalization>,
pub text_direction: Option<StylesTextDirection>,
pub text_input_action: Option<StylesTextInputAction>,
pub toolbar_options: Option<StylesToolbarOptions>,
pub type_: Value,
pub value: String,
}Expand description
Element of type TextField
Fields§
§autocorrect: Option<bool>Whether to enable the autocorrection
autofill_hints: Option<StylesAutofillHints>The type of this text input to provide autofill hints.
autofocus: Option<bool>Whether this Textfield should be focused initially.
build_counter: Option<Listener>Callback that generates a custom counter view.
drag_start_behavior: Option<StylesDragStartBehavior>Determines the way that drag start behavior is handled.
enable_interactive_selection: Option<bool>Whether to enable user interface options to change the text selection.
enabled: Option<bool>Whether the text field is enabled.
expands: Option<bool>Whether the TextField is sized to fill its parent.
keyboard_type: Option<StylesTextInputType>The type of the keyboard to use for editing the text.
max_length: Option<i64>The maximum number of characters to allow in the text field.
max_length_enforcement: Option<StylesMaxLengthEnforcement>Determines how the maxLength limit should be enforced.
max_lines: Option<i64>The maximum number of lines to show at one time.
min_lines: Option<i64>The minimum number of lines to occupy on the screen.
name: Option<String>The name that will be used in the form.
obscure_text: Option<bool>Whether to hide the text being edited.
on_app_private_command: Option<Listener>This is used to receive a private command from the input method.
on_changed: Option<Listener>Callback when the user changes the text field value.
on_editing_complete: Option<Listener>Callback when the user finishes editing the text field.
on_submitted: Option<Listener>Callback when the user tells he is done editing the text field.
on_tap: Option<Listener>Callback when the user taps on the text field.
read_only: Option<bool>Whether the text can be changed.
show_cursor: Option<bool>Whether to show the cursor.
style: Option<StylesTextFieldStyle>The style of the Textfield.
text_capitalization: Option<StylesTextCapitalization>Configures how the platform keyboard will select an uppercase or lowercase keyboard.
text_direction: Option<StylesTextDirection>The direction of the text.
text_input_action: Option<StylesTextInputAction>The type of the action button to use for the keyboard.
toolbar_options: Option<StylesToolbarOptions>Configuration of toolbar options
type_: ValueThe identifier of the component
value: StringThe value displayed inside the Textfield