Handles all xhr calls between client and servlet side for specs.
- Source:
Methods
-
<static> createNewGadgetSpec(specData, callbacks)
-
Posts a new spec to the servlet.
Parameters:
Name Type Description specData
Object Data of the new spec to be posted. callbacks
Object Object with a success and an error function. Properties
Name Type Description success
Function Fired if xhr was successful. error
Function Fired if xhr was not successful. - Source:
-
<static> getDefaultGadgetSpec(callbacks)
-
Gets the default gadget spec's data.
Parameters:
Name Type Description callbacks
Object Object with a success and an error function. Properties
Name Type Description success
Function Fired if xhr was successful. error
Function Fired if xhr was not successful. - Source:
-
<static> getGadgetSpec(id, callbacks)
-
Gets a gadget spec's data.
Parameters:
Name Type Description id
String The ID of the gadget spec. callbacks
Object Object with a success and an error function. Properties
Name Type Description success
Function Fired if xhr was successful. error
Function Fired if xhr was not successful. - Source:
-
<static> getSpecTree(callbacks)
-
Gets the json representation of the spec tree.
Parameters:
Name Type Description callbacks
Object Object with a success and an error function. Properties
Name Type Description success
Function Fired if xhr was successful. error
Function Fired if xhr was not successful. - Source: