new components(fluro)
- Source:
Creates a new FluroComponents instance.
This module provides a number of helper functions for working with Fluro components
Parameters:
Name | Type | Description |
---|---|---|
fluro |
FluroCore | A reference to the parent instance of the FluroCore module. This module is usually created by a FluroCore instance that passes itself in as the first argument. |
Methods
(static) hydrateModel(componentID, model) → {Object}
- Source:
Hydrates a data model by providing the component id
Parameters:
Name | Type | Description |
---|---|---|
componentID |
String | The id of the component that defines the fields |
model |
Object | The data model to hydrate |
Returns:
A copy of the data model with all references populated
- Type
- Object