Defines and exports components
- License:
- MIT
- MIT
- Source:
Methods
(static) create(key, options) → {Object}
Create an instence of the component
- Source:
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
unique identifier |
options |
Object
|
object passed to the component's code |
Returns:
- Type:
-
Object
Merged component with the default model and the acual component code
(static) exports(key, component, override)
Make sure the component is unique by key verification
and stores it with all the other components
- Source:
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
unique identifier |
component |
function
|
model of the component |
override |
Boolean
|
fake news |
(static) models() → {Objects}
Get all components models
- Source:
Returns:
- Type:
-
Objects