This is a recursive function that will instantiate
the JSON fields coming from the server into a Field object
Parameters:
Name | Type | Description |
---|---|---|
container |
Array | Store the inflated template fields here |
fields |
Array | Fields to inflate |
parent |
Object | The parent field of the current field in the loop |
- Source:
Returns:
- Type
- Array
Requires
- module:knockout
- module:app/models/Field