Shell
Defined in: js-api/src/shell.ts:40
Grok visual shell, use it to get access to top-level views, tables, methods, etc.
Example
grok.shell.addTableView(grok.data.demo.biosensor(1000));
Constructors
Constructor
new Shell():
Shell
Returns
Shell
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
build | AppBuildInfo | Build information of the client and the server. | js-api/src/shell.ts:46 |
settings | Settings & SettingsInterface | User-level platform settings; properties come from SettingsInterface. | js-api/src/shell.ts:44 |
windows | Windows | Visibility of the shell panels (sidebar, toolbox, console, help, context panel, ...). | js-api/src/shell.ts:42 |
Accessors
autostartsCompleted
Get Signature
get autostartsCompleted():
Promise<void>
Defined in: js-api/src/shell.ts:128
Resolves once every package autostart function has run; they start 3 seconds after the app has started.
Returns
Promise<void>
bottomPanel
Get Signature
get bottomPanel():
HTMLDivElement
Defined in: js-api/src/shell.ts:173
Returns
HTMLDivElement
browsePanel
Get Signature
get browsePanel():
BrowsePanel
Defined in: js-api/src/shell.ts:178
The Browse panel (the tree of the platform).
Returns
canRedo
Get Signature
get canRedo():
boolean
Defined in: js-api/src/shell.ts:384
Whether there is an operation to redo.
Returns
boolean
canUndo
Get Signature
get canUndo():
boolean
Defined in: js-api/src/shell.ts:382
Whether there is an operation to undo.
Returns
boolean
currentObject
Get Signature
get currentObject():
any
Defined in: js-api/src/shell.ts:141
Current object (rendered in the context panel), or null.
Returns
any
Set Signature
set currentObject(
x):void
Defined in: js-api/src/shell.ts:142
Parameters
| Parameter | Type |
|---|---|
x | any |
Returns
void
currentTable
Get Signature
get currentTable():
DataFrame|null
Defined in: js-api/src/shell.ts:70
Current table, or null.
Returns
DataFrame | null
currentTableView
Get Signature
get currentTableView():
TableView|null
Defined in: js-api/src/shell.ts:95
Current view when it is a TableView, else null.
Returns
TableView | null
currentView
Get Signature
get currentView():
ViewBase|null
Defined in: js-api/src/shell.ts:78
Current view, or null.
Returns
ViewBase | null
Set Signature
set currentView(
view):void
Defined in: js-api/src/shell.ts:79
Parameters
| Parameter | Type |
|---|---|
view | ViewBase | null |
Returns
void
dockManager
Get Signature
get dockManager():
DockManager
Defined in: js-api/src/shell.ts:363
Returns
favorites
Get Signature
get favorites():
Entity[]
Defined in: js-api/src/shell.ts:183
Entities the current user marked as favorites.
Returns
Entity[]
lastError
Get Signature
get lastError():
Promise<string|undefined>
Defined in: js-api/src/shell.ts:125
Last error state
Returns
Promise<string | undefined>
Set Signature
set lastError(
s):void
Defined in: js-api/src/shell.ts:130
Parameters
| Parameter | Type |
|---|---|
s | any |
Returns
void
o
Get Signature
get o():
any
Defined in: js-api/src/shell.ts:145
Alias of currentObject.
Returns
any