Constructor
new Result()
Wraps a cell with selectable result values.
Properties:
Name | Type | Description |
---|---|---|
cell |
module:Notebook~Cell | view containing result values. |
remaining |
number | number of lines to print before termination. |
terminated |
boolean | interpreter has been terminated. |
worker |
DedicatedWorker | interface to parallel executing JavaScript interpreter. |
- Source:
Methods
click()
Click event handler: closes cell or
terminates worker and enables user interface, depending on
enable
.
- Source:
erase()
Erase (previous) content; sets remaining lines to zero.
- Source:
message(_messages)
Display message unconditionally.
Parameters:
Name | Type | Description |
---|---|---|
_messages |
string | Array.<string> | array elements will be separated by blanks. |
- Source:
print(_messages)
Display message if there is room.
Parameters:
Name | Type | Description |
---|---|---|
_messages |
string | Array.<string> | array elements will be separated by blanks. |
- Source:
stop()
Terminate interpreter, (re-)enable user interface.
- Source: