Methods
(inner) checkResult(obj, parent, mode) → {boolean}
Checks the json response for an error object or empty result
and displays the error in the table body.
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc object to check |
parent |
HTMLElement | element to add the result message |
mode |
string | table or grid |
Returns:
false = result is empty or an error, else true
- Type
- boolean
(inner) checkResultId(obj, parentid, mode) → {boolean}
Wrapper for checkResult with id selector
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc object to check |
parentid |
string | parent id of element to add the result message |
mode |
string | table or grid |
Returns:
true = result is not an error, else false
- Type
- boolean
(inner) emptyMsgEl(colspan, mode) → {HTMLElement}
Creates an empty list hint
Parameters:
Name | Type | Description |
---|---|---|
colspan |
number | column count |
mode |
string | table or grid |
Returns:
created row
- Type
- HTMLElement
(inner) errorMsgEl(obj, colspan, mode) → {HTMLElement}
Creates an element with the error message
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc error object |
colspan |
number | column count |
mode |
string | table or grid |
Returns:
created row
- Type
- HTMLElement
(inner) loadingMsgEl(colspan, mode) → {HTMLElement}
Creates a loading list hint
Parameters:
Name | Type | Description |
---|---|---|
colspan |
number | column count |
mode |
string | table or grid |
Returns:
created row
- Type
- HTMLElement
(inner) warningMsgEl(message, colspan, mode) → {HTMLElement}
Creates an element with the warning message
Parameters:
Name | Type | Description |
---|---|---|
message |
string | phrase to display |
colspan |
number | column count |
mode |
string | table or grid |
Returns:
created row
- Type
- HTMLElement