MdTextField
Text fields let users enter text into a UI.
See https://material-web.dev/components/text-field/
Author
Maanrifa Bacar Ali
Inheritors
Properties
Describes what, if any, type of autocomplete functionality the input should provide. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
The number of cols to display for a TextFieldInputType.TextArea text field.
Gets or sets whether or not the text field is in a visually invalid state. This error state overrides the error state controlled by reportValidity.
The associated form element with which this element's value will submit.
Hints at the type of data that might be entered by the user while editing the element or its contents. This allows a browser to display an appropriate virtual keyboard. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode
Defines the greatest value in the range of permitted values. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
Defines the most negative value in the range of permitted values. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
Defines the text displayed in a form control when the text field has no value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/placeholder
An optional prefix to display before the input value.
The number of rows to display for a TextFieldInputType.TextArea text field.
The direction in which selection occurred.
The end position or offset of a text selection.
The starting position or offset of a text selection.
An optional suffix to display after the input value.
Conveys additional information below the text field, such as how it should be used.
The type to use, defaults to "text". The type greatly changes how the text field behaves.
Message to display when the component value is not valid.
Gets the element's current validity state.
The text field's value as a Date.
The text field's value as a number.
Indicates that the element is a candidate for constraint validation.
Functions
Indicates the validity of the value of the element. If the value is invalid, this method also fires the invalid event on the element.
Sets the icon identified by name to the leading slot.
Performs the same validity checking steps as the checkValidity method. If the value is invalid, this method also fires the invalid event on the element, and (if the event isn't canceled) reports the problem to the user.
Sets a custom validity message for the underlying element.
Replaces a range of text with a new string.
Sets the start and end positions of a selection in the text field.
Decrements the value of a numeric type text field by MdTextField.step or stepDecrement step number of times.
Increments the value of a numeric type text field by MdTextField.step or stepIncrement step number of times.
Sets the icon identified by name to the trailing slot.