discontinuedPackage js_bindings has been discontinued and replaced by typings.

CustomElementRegistry class

The interface provides methods for registering custom elements and querying registered elements. To get an instance of it, use the window.customElements property.

Available extensions
Annotations
  • @experimental
  • @JS.new()
  • @staticInterop

Constructors

CustomElementRegistry()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

define(String name, CustomElementConstructor constructor, [ElementDefinitionOptions? options]) → void

Available on CustomElementRegistry, provided by the PropsCustomElementRegistry extension

get(String name) → dynamic

Available on CustomElementRegistry, provided by the PropsCustomElementRegistry extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
upgrade(Node root) → void

Available on CustomElementRegistry, provided by the PropsCustomElementRegistry extension

whenDefined(String name) → Future<CustomElementConstructor>

Available on CustomElementRegistry, provided by the PropsCustomElementRegistry extension

Operators

operator ==(Object other) → bool
The equality operator.
inherited