CustomElementRegistry
The CustomElementRegistry interface provides methods for registering custom elements and querying registered elements. To get an instance of it, use the window.customElements property. To create a scoped registry, use the CustomElementRegistry() constructor.
Functions
The define() method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.
The define() method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.
The get() method of the CustomElementRegistry interface returns the constructor for a previously-defined custom element.
The getName() method of the CustomElementRegistry interface returns the name for a previously-defined custom element.
The getName() method of the CustomElementRegistry interface returns the name for a previously-defined custom element.
The initialize() method of the CustomElementRegistry interface associates this registry with a DOM subtree, setting the customElementRegistry of each inclusive descendant that doesn't already have one, and attempting to upgrade any custom elements found.
The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined.
The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined.