define method

void define(
  1. String name,
  2. CustomElementConstructor constructor, [
  3. ElementDefinitionOptions options
])

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.

Implementation

external void define(
  String name,
  CustomElementConstructor constructor, [
  ElementDefinitionOptions options,
]);