Interface CustomElementRegistry
interface CustomElementRegistry {
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
get(name: string): CustomElementConstructor;
getName(constructor: CustomElementConstructor): string;
upgrade(root: Node): void;
whenDefined(name: string): Promise<CustomElementConstructor>;
}
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
get(name: string): CustomElementConstructor;
getName(constructor: CustomElementConstructor): string;
upgrade(root: Node): void;
whenDefined(name: string): Promise<CustomElementConstructor>;
}
Index
Methods
Methods
define
- define(name, constructor, options?): void
Parameters
- name: string
- constructor: CustomElementConstructor
Optional
options: ElementDefinitionOptions
Returns void
get
- get(name): CustomElementConstructor
Parameters
- name: string
Returns CustomElementConstructor
getName
- get
Name (constructor): string Parameters
- constructor: CustomElementConstructor
Returns string
upgrade
- upgrade(root): void
Parameters
- root: Node
Returns void
whenDefined
- when
Defined (name): Promise<CustomElementConstructor> Parameters
- name: string
Returns Promise<CustomElementConstructor>
MDN Reference