AbstractProtected_Attached ElementInternals which provides form handling functionality.
Protected_The primary input (if any). Used to determine what element should receive focus when an associated label is clicked on.
Protected_The underlying value of the element.
StaticformDeclare that this custom element provides form element functionality.
StaticobservedAttributes requiring change notifications
StatictagThe HTML tag name used by this element.
An AbortSignal that can be passed to event listeners registered in subclasses. The signal will ensure that the listener is removed when the element is disconnected from the DOM. Not available in the constructor.
Is this element disabled?
Is this field editable? The field can be neither disabled nor readonly.
The form this element belongs to.
The input element name.
The value of the input element.
InternalApply key attributes on the containing custom HTML element to input elements contained within it.
Called when the element is moved into a new Document.
Initialize the custom element, constructing its HTML.
Protected_ProtectedActivate event listeners which add dynamic behavior to the custom element.
Protected_ProtectedCreate the HTML elements that should be included in this custom element. Elements are returned as an array of ordered children.
Protected_ProtectedA method provided for subclasses to perform tear-down workflows as an alternative to overriding disconnectedCallback.
Protected_ProtectedReturn the value of the input element which should be submitted to the form.
Protected_ProtectedSpecial handling when the custom element is clicked. This should be implemented to transfer focus to an appropriate internal element.
Protected_ProtectedRefresh the active state of the custom element.
Protected_ProtectedTranslate user-provided input value into the format that should be stored.
A new value to assign to the element
Protected_ProtectedSpecial behaviors that the subclass should implement when toggling the disabled state of the input.
The new disabled state
An abstract custom HTMLElement designed for use with form inputs.
Template: FormInputValueType
Fires
input An "input" event when the value of the input changes
Fires
change A "change" event when the value of the element changes