Optional
options: HTMLStringTagsOptions = {}Protected
_internalsAttached ElementInternals which provides form handling functionality.
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
tagAn 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.
Protected
_disconnectProtected
A method provided for subclasses to perform tear-down workflows as an alternative to overriding disconnectedCallback.
Protected
_initializeProtected
Initialize innerText or an initial value attribute of the element as a comma-separated list of currently assigned string tags.
Optional
values: string[]An array of initial values.
Protected
_onProtected
Special handling when the custom element is clicked. This should be implemented to transfer focus to an appropriate internal element.
Protected
_validateStatic
createCreate a HTMLStringTagsElement using provided configuration data.
Static
renderRender the tagged string as an HTML element.
The raw tag value
Optional
label: stringAn optional tag label
Optional
editable: boolean = trueIs the tag editable?
A rendered HTML element for the tag
A custom HTML element which allows for arbitrary assignment of a set of string tags. This element may be used directly or subclassed to impose additional validation or functionality.