HTMLInputElement$Typings extension
Properties
-
accept
↔ String
-
Sets or retrieves a comma-separated list of content types.
getter/setter pair
-
addEventListener
→ ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
align
↔ String
-
Sets or retrieves how the object is aligned with adjacent text.
@deprecated
getter/setter pair
-
alt
↔ String
-
Sets or retrieves a text alternative to the graphic.
getter/setter pair
-
autocomplete
↔ Object
-
Specifies whether autocomplete is applied to an editable text field.
getter/setter pair
-
capture
↔ String
-
getter/setter pair
-
checked
↔ bool
-
Sets or retrieves the state of the check box or radio button.
getter/setter pair
-
checkValidity
↔ bool Function()
-
getter/setter pair
-
defaultChecked
↔ bool
-
Sets or retrieves the state of the check box or radio button.
getter/setter pair
-
defaultValue
↔ String
-
Sets or retrieves the initial contents of the object.
getter/setter pair
-
dirName
↔ String
-
getter/setter pair
-
disabled
↔ bool
-
getter/setter pair
-
files
↔ FileList?
-
Returns a FileList object on a file type input object.
getter/setter pair
-
form
→ HTMLFormElement?
-
Retrieves a reference to the form that the object is embedded in.
no setter
-
formAction
↔ String
-
Overrides the action attribute (where the data on a form is sent) on the parent form element.
getter/setter pair
-
formEnctype
↔ String
-
Used to override the encoding (formEnctype attribute) specified on the form element.
getter/setter pair
-
formMethod
↔ String
-
Overrides the submit method attribute previously specified on a form element.
getter/setter pair
-
formNoValidate
↔ bool
-
Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
getter/setter pair
-
formTarget
↔ String
-
Overrides the target attribute on a form element.
getter/setter pair
-
height
↔ num
-
Sets or retrieves the height of the object.
getter/setter pair
-
indeterminate
↔ bool
-
When set, overrides the rendering of checkbox controls so that the current value is not visible.
getter/setter pair
-
labels
→ NodeListOf<HTMLLabelElement>?
-
MDN Reference
no setter
-
list
→ HTMLDataListElement?
-
Specifies the ID of a pre-defined datalist of options for an input element.
no setter
-
max
↔ String
-
Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
getter/setter pair
-
maxLength
↔ num
-
Sets or retrieves the maximum number of characters that the user can enter in a text control.
getter/setter pair
-
min
↔ String
-
Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
getter/setter pair
-
minLength
↔ num
-
getter/setter pair
-
multiple
↔ bool
-
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
getter/setter pair
-
name
↔ String
-
Sets or retrieves the name of the object.
getter/setter pair
-
pattern
↔ String
-
Gets or sets a string containing a regular expression that the user's input must match.
getter/setter pair
-
placeholder
↔ String
-
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
getter/setter pair
-
readOnly
↔ bool
-
getter/setter pair
-
removeEventListener
→ ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
reportValidity
↔ bool Function()
-
getter/setter pair
-
required
↔ bool
-
When present, marks an element that can't be submitted without a value.
getter/setter pair
-
select
↔ void Function()
-
getter/setter pair
-
selectionDirection
↔ SelectionDirection?
-
MDN Reference
getter/setter pair
-
selectionEnd
↔ num?
-
Gets or sets the end position or offset of a text selection.
getter/setter pair
-
selectionStart
↔ num?
-
Gets or sets the starting position or offset of a text selection.
getter/setter pair
-
setCustomValidity
↔ void Function(String)
-
getter/setter pair
-
setSelectionRange
↔ void Function([num?, num?, UnionEnum0?])
-
getter/setter pair
-
showPicker
↔ void Function()
-
getter/setter pair
-
size
↔ num
-
getter/setter pair
-
src
↔ String
-
The address or URL of the a media resource that is to be considered.
getter/setter pair
-
step
↔ String
-
Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
getter/setter pair
-
stepDown
↔ void Function([num?])
-
getter/setter pair
-
stepUp
↔ void Function([num?])
-
getter/setter pair
-
type
↔ String
-
Returns the content type of the object.
getter/setter pair
-
useMap
↔ String
-
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
@deprecated
getter/setter pair
-
validationMessage
→ String
-
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
no setter
-
validity
→ ValidityState
-
Returns a ValidityState object that represents the validity states of an element.
no setter
-
value
↔ String
-
Returns the value of the data at the cursor's current position.
getter/setter pair
-
valueAsDate
↔ DateTime?
-
Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
getter/setter pair
-
valueAsNumber
↔ num
-
Returns the input field value as a number.
getter/setter pair
-
webkitdirectory
↔ bool
-
MDN Reference
getter/setter pair
-
webkitEntries
→ ReadonlyArray<FileSystemEntry>
-
MDN Reference
no setter
-
width
↔ num
-
Sets or retrieves the width of the object.
getter/setter pair
-
willValidate
→ bool
-
Returns whether an element will successfully validate based on forms validation rules and constraints.
no setter