@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="CustomElementRegistry")
public class CustomElementRegistry
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
CustomElementRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
define(java.lang.String name,
CustomElementConstructor constructor)
The define() method of the CustomElementRegistry interface defines a new custom element.
|
void |
define(java.lang.String name,
CustomElementConstructor constructor,
ElementDefinitionOptions options)
The define() method of the CustomElementRegistry interface defines a new custom element.
|
CustomElementConstructorOrUndefinedUnion |
get(java.lang.String name)
The get() method of the CustomElementRegistry interface returns the constructor for a previously-defined custom element.
|
void |
upgrade(Node root)
The upgrade() method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
|
Promise<CustomElementConstructor> |
whenDefined(java.lang.String name)
The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic void define(@Nonnull
java.lang.String name,
@Nonnull
CustomElementConstructor constructor,
@Nonnull
ElementDefinitionOptions options)
public void define(@Nonnull
java.lang.String name,
@Nonnull
CustomElementConstructor constructor)
@Nonnull public CustomElementConstructorOrUndefinedUnion get(@Nonnull java.lang.String name)
public void upgrade(@Nonnull
Node root)
@Nonnull public Promise<CustomElementConstructor> whenDefined(@Nonnull java.lang.String name)