Build a component with getter/Setter from Json Object or Json file
Methods
-
<static> buildComponentFromFile(pathFile)
-
Build a javascript Object (with getter/setter) from json file
Parameters:
Name Type Description pathFile
string the path of the json file
Returns:
A Component Built
- Type
- Object
-
<static> createComponentFromJson(jsonObj)
-
Create a javascript Object (with getter/setter) from json Object
Parameters:
Name Type Description jsonObj
Object A component json object (see example componentExample.json)
Returns:
A Component Built
- Type
- Object