Protected
_choicesAn object which maps option values to displayed labels.
Protected
_internalsAttached ElementInternals which provides form handling functionality.
Protected
_optionsPredefined
Protected
_primaryThe primary input (if any). Used to determine what element should receive focus when an associated label is clicked on.
Static
formDeclare that this custom element provides form element functionality.
Static
observedAttributes requiring change notifications
Static
tagThe 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.
Internal
Apply key attributes on the containing custom HTML element to input elements contained within it.
Initialize the custom element, constructing its HTML.
Mark a choice as selected.
The value to add to the chosen set
Mark a choice as un-selected.
The value to delete from the chosen set
Protected
_activateProtected
Activate event listeners which add dynamic behavior to the custom element.
Protected
_buildProtected
Create the HTML elements that should be included in this custom element. Elements are returned as an array of ordered children.
Protected
_disconnectProtected
A method provided for subclasses to perform tear-down workflows as an alternative to overriding disconnectedCallback.
Protected
_initializeProtected
Preserve existing
Protected
_onProtected
Special handling when the custom element is clicked. This should be implemented to transfer focus to an appropriate internal element.
Protected
_refreshProtected
Refresh the active state of the custom element.
Protected
_toggleProtected
Special behaviors that the subclass should implement when toggling the disabled state of the input.
The new disabled state
An abstract base class designed to standardize the behavior for a multi-select UI component. Multi-select components return an array of values as part of form submission. Different implementations may provide different experiences around how inputs are presented to the user.