Class Components
Implements
- Components
Index
Constructors
constructor
- new Components(): Components
Returns Components
Accessors
components
- get components(): Map<string, CustomElementConstructor>
Returns Map<string, CustomElementConstructor>
names
- get names(): string[]
Returns string[]
Methods
define
- define(name: string, component: CustomElementConstructor): void
Parameters
- name: string
- component: CustomElementConstructor
Returns void
get
- get(name: string): undefined | CustomElementConstructor
Parameters
- name: string
Returns undefined | CustomElementConstructor
getName
- getName(component: CustomElementConstructor): null | string
Parameters
- component: CustomElementConstructor
Returns null | string
has
upgrade
whenDefined
- whenDefined(name: string): Promise<CustomElementConstructor>
Parameters
- name: string
Returns Promise<CustomElementConstructor>
The Components (plural) class provides a registry for custom elements (Web Components) within the kernel.