Requires
Methods
(inner) onComplete(callback(err,response))
Returns a function for handling ajax responses from jquery and calls
the callback with the data or appropriate error.
Parameters:
Name |
Type |
Description |
callback(err,response) |
function
|
|
- Source:
Type Definitions
ChangesFeedCallback(object)
Information from changes feed
Parameters:
Name |
Type |
Description |
object |
Object
|
JSON information from changes feed |
- Source:
CommandObject
Object sent to command function
Type:
Properties:
Name |
Type |
Attributes |
Description |
cmd_name |
String
|
|
name of command |
arguments |
Array
|
<optional>
|
list of arguments (must be JSON-parseable!) |
callback |
module:lib/update_db.DBRequestCallback
|
<optional>
|
callback function |
timeout |
number
|
<optional>
|
time (in seconds) to wait until timeout. If not sent, no timeout |
quiet |
boolean
|
<optional>
|
don't give any toastr messages |
- Source:
CommandReturnObject
Object returned from command function
Type:
Properties:
Name |
Type |
Description |
promise |
object
|
promise object |
abort |
function
|
call to request an abort |
- Source:
CommandsCallback(rowsOfCommands)
Returns an object with all commands
Parameters:
Name |
Type |
Description |
rowsOfCommands |
Array
|
|
- Source:
DBRequestCallback(err, result)
Parameters:
Name |
Type |
Description |
err |
Object
|
object containing error, null/undefined if no error |
result |
Object
|
object containing result, generally JSON format |
- Source:
OnChangesCallback(object)
Information from changes feed
Parameters:
Name |
Type |
Description |
object |
Object
|
JSON information from changes feed |
- Source:
OnLatestCallback(object)
Information from changes feed
Parameters:
Name |
Type |
Description |
object |
Object
|
dictionary of latest variables and values
(does not always include *all* variables!) |
- Source:
VariableNamesCallback(listOfVariables)
Returns a list of variables
Parameters:
Name |
Type |
Description |
listOfVariables |
Array
|
|
- Source:
ViewStatusCallback(returned)
Returns status of view
Parameters:
Name |
Type |
Description |
returned |
Object
|
object, { error : msg } if error, otherwise information about the view status |
- Source: