Element Info

Web ComponentsCustom Elements

To get the information about custom elements, there are methods:

method

notes

returns the class for a custom element with the given name

customElements.whenDefined(name)

returns a promise that resolves (without value) when a custom element with the given name becomes defined.

Last updated