HTMLInputElement class abstract
The base interface for <input> elements.
This interface contains only the properties and methods that apply to
almost all input types. For type-specific properties (like min/max
for numbers or checked for checkboxes), cast this to one of the
specialized sub-interfaces like HTMLNumericInputElement or
HTMLCheckableInputElement.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
- Implemented types
Constructors
Properties
- attributes → NamedNodeMap
-
no setterinherited
- autofocus ↔ bool
-
getter/setter pair
- childNodes → NodeList
-
no setterinherited
- children → HTMLCollection
-
no setterinherited
- classList → DOMTokenList
-
no setterinherited
- className ↔ String
-
getter/setter pairinherited
- defaultValue ↔ String
-
getter/setter pair
- disabled ↔ bool
-
getter/setter pair
- firstChild → Node?
-
no setterinherited
- form → HTMLFormElement?
-
Returns the form element that contains this input.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
getter/setter pairinherited
- id ↔ String
-
getter/setter pairinherited
- innerHTML ↔ String
-
getter/setter pairinherited
- innerText ↔ String
-
getter/setter pairinherited
- isConnected → bool
-
no setterinherited
- labels → NodeList
-
Returns a list of label elements associated with this input.
no setter
- lastChild → Node?
-
no setterinherited
- list → HTMLDataListElement?
-
Returns the datalist element that contains the options for this input.
no setter
- name ↔ String
-
getter/setter pair
- namespaceURI → String?
-
no setterinherited
- nextSibling → Node?
-
no setterinherited
- nodeName → String
-
no setterinherited
- nodeType → int
-
no setterinherited
- outerHTML → String
-
no setterinherited
- parentElement → Node?
-
no setterinherited
- parentNode → Node?
-
no setterinherited
- previousSibling → Node?
-
no setterinherited
- raw → dynamic
-
The underlying platform object.
no setterinherited
- required ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowRoot → ShadowRoot?
-
no setterinherited
- style → CSSStyleDeclaration
-
no setterinherited
- tagName → String
-
no setterinherited
- textContent ↔ String?
-
getter/setter pairinherited
- title ↔ String
-
getter/setter pairinherited
- type ↔ String
-
getter/setter pair
- validationMessage → String
-
The localized message that describes the validation constraints.
no setter
- validity → ValidityState
-
The current validity state of the element.
no setter
- value ↔ String
-
getter/setter pair
- willValidate → bool
-
Whether the element is a candidate for constraint validation.
no setter
Methods
-
addEventListener(
String type, EventListener? callback) → void -
Registers an event listener on this target.
inherited
-
append(
Node node) → void -
inherited
-
appendChild(
Node child) → Node -
inherited
-
attachShadow(
ShadowRootInit init) → ShadowRoot -
inherited
-
blur(
) → void -
inherited
-
checkValidity(
) → bool - Checks if the element has any constraints and whether it satisfies them.
-
cloneNode(
[bool deep = false]) → Node -
inherited
-
closest(
String selectors) → Element? -
inherited
-
contains(
EventTarget? other) → bool -
inherited
-
dispatchEvent(
Event event) → bool -
Dispatches an event to this target.
inherited
-
focus(
) → void -
inherited
-
getAttribute(
String name) → String? -
inherited
-
hasAttribute(
String name) → bool -
inherited
-
hasChildNodes(
) → bool -
inherited
-
insertBefore(
Node newNode, Node? referenceNode) → Node -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
querySelector(
String selectors) → Element? -
inherited
-
querySelectorAll(
String selectors) → NodeList -
inherited
-
remove(
) → void -
inherited
-
removeAttribute(
String name) → void -
inherited
-
removeChild(
Node child) → Node -
inherited
-
removeEventListener(
String type, EventListener? callback) → void -
Removes a previously registered event listener.
inherited
-
replaceChild(
Node newChild, Node oldChild) → Node -
inherited
-
reportValidity(
) → bool - Reports the validity of the element to the user agent.
-
select(
) → void - Selects all text in the input element.
-
setAttribute(
String name, String value) → void -
inherited
-
setCustomValidity(
String error) → void - Sets a custom validation message.
-
showPicker(
) → void - Shows a browser picker for the input (e.g. date picker, color picker).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited