Methods
(static) clear()
Clear the registry (mostly for testing).
- Source
(static) create(name, …args) → {Component|null}
Create a new instance of a component by name.
| Name | Type | Attributes | Description |
|---|---|---|---|
name | string | The name of the component. | |
args | any | <repeatable> | Arguments to pass to the constructor. |
- Source
The new component instance, or null if not found.
- Type:
- Component |
null
(static) get(name) → {class|undefined}
Get a component class by name.
| Name | Type | Description |
|---|---|---|
name | string | The name of the component. |
- Source
The component class constructor.
- Type:
- class |
undefined
(static) nameOf()
Return the registered serialized name for a component constructor or instance. Unregistered components fall back to their JavaScript constructor name.
- Source
(static) register(name, componentClass)
Register a component class with the registry.
| Name | Type | Description |
|---|---|---|
name | string | The name to register the component under (usually class.name). |
componentClass | class | The class constructor. |
- Source