Defines custom element.
A component class constructor or custom element name. The latter may belong to namespace to avoid naming conflicts.
A constructor of custom element to define.
Optional
options: ElementDefinitionOptionsCustom element definition options.
Allows to wait for component definition.
This corresponds to window.customElements.whenDefined()
method.
A promise that is resolved when custom element is registered.
TypeError If componentType
does not contain a component definition.
Component class constructor or custom element name possibly belonging to some namespace.
Generated using TypeDoc
Custom elements' registry.
This is used to register custom elements.
Typically, implemented by
window.customElements
.