define method
void
define(
- String name,
- CustomElementConstructor constructor, [
- 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,
]);