Skip to main content

Class: DockView

dg.DockView

A view is typically docked in the main document area of the Grok platform. See [TableView], [SketchView], etc

Hierarchy

Constructors

constructor

new DockView(dart)

Parameters

NameType
dartany

Overrides

View.constructor

Defined in

src/views/view.ts:717

Properties

_name

Protected _name: string = 'New View'

Inherited from

View._name

Defined in

src/views/view.ts:87


_root

Protected _root: HTMLElement

Inherited from

View._root

Defined in

src/views/view.ts:26


dart

dart: any

Inherited from

View.dart

Defined in

src/views/view.ts:23


subs

subs: Subscription[]

Inherited from

View.subs

Defined in

src/views/view.ts:24


temp

temp: any

Contains auxiliary information

Inherited from

View.temp

Defined in

src/views/view.ts:217


ALL_VIEW_TYPES

Static Readonly ALL_VIEW_TYPES: string[]

Inherited from

View.ALL_VIEW_TYPES

Defined in

src/views/view.ts:363


APPS

Static Readonly APPS: "apps"

Inherited from

View.APPS

Defined in

src/views/view.ts:335


DATABASES

Static Readonly DATABASES: "databases"

Inherited from

View.DATABASES

Defined in

src/views/view.ts:345


DATA_CONNECTIONS

Static Readonly DATA_CONNECTIONS: "connections"

Inherited from

View.DATA_CONNECTIONS

Defined in

src/views/view.ts:349


DATA_JOB_RUNS

Static Readonly DATA_JOB_RUNS: "jobs"

Inherited from

View.DATA_JOB_RUNS

Defined in

src/views/view.ts:350


DATA_QUERY_RUNS

Static Readonly DATA_QUERY_RUNS: "queryruns"

Inherited from

View.DATA_QUERY_RUNS

Defined in

src/views/view.ts:352


EMAILS

Static Readonly EMAILS: "emails"

Inherited from

View.EMAILS

Defined in

src/views/view.ts:353


FILES

Static Readonly FILES: "files"

Inherited from

View.FILES

Defined in

src/views/view.ts:351


FORUM

Static Readonly FORUM: "forum"

Inherited from

View.FORUM

Defined in

src/views/view.ts:340


FUNCTIONS

Static Readonly FUNCTIONS: "functions"

Inherited from

View.FUNCTIONS

Defined in

src/views/view.ts:348


GROUPS

Static Readonly GROUPS: "groups"

Inherited from

View.GROUPS

Defined in

src/views/view.ts:354


HELP

Static Readonly HELP: "help"

Inherited from

View.HELP

Defined in

src/views/view.ts:343


JS_EDITOR

Static Readonly JS_EDITOR: "js"

Inherited from

View.JS_EDITOR

Defined in

src/views/view.ts:361


MODELS

Static Readonly MODELS: "models"

Inherited from

View.MODELS

Defined in

src/views/view.ts:355


NOTEBOOKS

Static Readonly NOTEBOOKS: "notebooks"

Inherited from

View.NOTEBOOKS

Defined in

src/views/view.ts:342


OPEN_TEXT

Static Readonly OPEN_TEXT: "text"

Inherited from

View.OPEN_TEXT

Defined in

src/views/view.ts:344


PACKAGES

Static Readonly PACKAGES: "packages"

Inherited from

View.PACKAGES

Defined in

src/views/view.ts:359


PACKAGE_REPOSITORIES

Static Readonly PACKAGE_REPOSITORIES: "repositories"

Inherited from

View.PACKAGE_REPOSITORIES

Defined in

src/views/view.ts:360


PROJECTS

Static Readonly PROJECTS: "projects"

Inherited from

View.PROJECTS

Defined in

src/views/view.ts:341


QUERIES

Static Readonly QUERIES: "queries"

Inherited from

View.QUERIES

Defined in

src/views/view.ts:356


SCRIPT

Static Readonly SCRIPT: "script"

Inherited from

View.SCRIPT

Defined in

src/views/view.ts:338


SCRIPTS

Static Readonly SCRIPTS: "scripts"

Inherited from

View.SCRIPTS

Defined in

src/views/view.ts:357


SETTINGS

Static Readonly SETTINGS: "settings"

Inherited from

View.SETTINGS

Defined in

src/views/view.ts:336


SKETCH

Static Readonly SKETCH: "sketch"

Inherited from

View.SKETCH

Defined in

src/views/view.ts:339


USERS

Static Readonly USERS: "users"

Inherited from

View.USERS

Defined in

src/views/view.ts:358


VIEW_LAYOUTS

Static Readonly VIEW_LAYOUTS: "layouts"

Inherited from

View.VIEW_LAYOUTS

Defined in

src/views/view.ts:347


WEB_SERVICES

Static Readonly WEB_SERVICES: "webservices"

Inherited from

View.WEB_SERVICES

Defined in

src/views/view.ts:346


WELCOME

Static Readonly WELCOME: "welcome"

Inherited from

View.WELCOME

Defined in

src/views/view.ts:337

Accessors

basePath

get basePath(): string

View type URI. Note that path is specific to the instance of the view.

Returns

string

Inherited from

View.basePath

Defined in

src/views/view.ts:112

set basePath(s): void

Parameters

NameType
sstring

Returns

void

Inherited from

View.basePath

Defined in

src/views/view.ts:113


box

get box(): boolean

Returns

boolean

Inherited from

View.box

Defined in

src/views/view.ts:58

set box(b): void

Parameters

NameType
bboolean

Returns

void

Inherited from

View.box

Defined in

src/views/view.ts:62


closing

get closing(): boolean

Whether the view is currently closing.

Returns

boolean

Inherited from

View.closing

Defined in

src/views/view.ts:130

set closing(c): void

Parameters

NameType
cboolean

Returns

void

Inherited from

View.closing

Defined in

src/views/view.ts:131


description

get description(): string

Returns

string

Inherited from

View.description

Defined in

src/views/view.ts:274

set description(s): void

Parameters

NameType
sstring

Returns

void

Inherited from

View.description

Defined in

src/views/view.ts:278


entity

get entity(): null | object

Returns

null | object

Inherited from

View.entity

Defined in

src/views/view.ts:108

set entity(e): void

Parameters

NameType
enull | object

Returns

void

Inherited from

View.entity

Defined in

src/views/view.ts:109


helpUrl

get helpUrl(): null | string

Returns

null | string

View help URL.

Inherited from

View.helpUrl

Defined in

src/views/view.ts:283

set helpUrl(url): void

Parameters

NameType
urlnull | string

Returns

void

Inherited from

View.helpUrl

Defined in

src/views/view.ts:287


id

get id(): string

Returns

string

Inherited from

View.id

Defined in

src/views/view.ts:270


name

get name(): string

View name. It gets shown in the tab handle.

Returns

string

Inherited from

View.name

Defined in

src/views/view.ts:317

set name(s): void

Parameters

NameType
sstring

Returns

void

Inherited from

View.name

Defined in

src/views/view.ts:322


parentCall

get parentCall(): undefined | FuncCall

Returns

undefined | FuncCall

Inherited from

View.parentCall

Defined in

src/views/view.ts:99

set parentCall(s): void

Parameters

NameType
sundefined | FuncCall

Returns

void

Inherited from

View.parentCall

Defined in

src/views/view.ts:100


parentView

get parentView(): ViewBase

Returns

ViewBase

Inherited from

View.parentView

Defined in

src/views/view.ts:102

set parentView(s): void

Parameters

NameType
sViewBase

Returns

void

Inherited from

View.parentView

Defined in

src/views/view.ts:103


path

get path(): string

View URI, relative to the platform root. See also basePath

Returns

string

Inherited from

View.path

Defined in

src/views/view.ts:163

set path(s): void

Parameters

NameType
sstring

Returns

void

Inherited from

View.path

Defined in

src/views/view.ts:167


ribbonMenu

get ribbonMenu(): Menu

View menu. Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon

Returns

Menu

Inherited from

View.ribbonMenu

Defined in

src/views/view.ts:122

set ribbonMenu(menu): void

Parameters

NameType
menuMenu

Returns

void

Inherited from

View.ribbonMenu

Defined in

src/views/view.ts:123


root

get root(): HTMLElement

Returns

HTMLElement

Inherited from

View.root

Defined in

src/views/view.ts:260


statusBarPanels

get statusBarPanels(): HTMLDivElement[]

Status bar panels to be shown on the bottom

Returns

HTMLDivElement[]

Inherited from

View.statusBarPanels

Defined in

src/views/view.ts:126

set statusBarPanels(panels): void

Parameters

NameType
panelsHTMLDivElement[]

Returns

void

Inherited from

View.statusBarPanels

Defined in

src/views/view.ts:127


toolbox

get toolbox(): HTMLElement

View toolbox. Sample: https://public.datagrok.ai/js/samples/ui/views/toolbox

Returns

HTMLElement

Inherited from

View.toolbox

Defined in

src/views/view.ts:117

set toolbox(x): void

Parameters

NameType
xHTMLElement

Returns

void

Inherited from

View.toolbox

Defined in

src/views/view.ts:118


type

get type(): string

View type

Returns

string

Inherited from

View.type

Defined in

src/views/view.ts:266

Methods

_handleResize

_handleResize(): string

Returns

string

Defined in

src/views/view.ts:725


_onAdded

_onAdded(): void

Returns

void

Inherited from

View._onAdded

Defined in

src/views/view.ts:330


acceptsPath

acceptsPath(path): boolean

Checks if URL path is acceptable.

Parameters

NameTypeDescription
pathstringURL path.

Returns

boolean

"true" if path is acceptable, "false" otherwise.

Inherited from

View.acceptsPath

Defined in

src/views/view.ts:179


append

append(item): HTMLElement

Appends an item to this view. Use appendAll for appending multiple elements.

Parameters

NameType
itemany

Returns

HTMLElement

Inherited from

View.append

Defined in

src/views/view.ts:186


appendAll

appendAll(items): HTMLElement

Appends multiple elements this view. Use append for appending a single element.

Parameters

NameType
itemsHTMLElement[]

Returns

HTMLElement

Inherited from

View.appendAll

Defined in

src/views/view.ts:193


close

close(): void

Closes this view.

Returns

void

Inherited from

View.close

Defined in

src/views/view.ts:203


detach

detach(): void

Detaches this view.

Returns

void

Inherited from

View.detach

Defined in

src/views/view.ts:198


getIcon

getIcon(): null | HTMLElement

Returns

null | HTMLElement

View icon.

Inherited from

View.getIcon

Defined in

src/views/view.ts:146


getInfo

getInfo(): ViewLayout

Saves view as a ViewInfo. Only applicable to certain views, such as TableView.

Returns

ViewLayout

Inherited from

View.getInfo

Defined in

src/views/view.ts:310


getRibbonPanels

getRibbonPanels(): HTMLElement[][]

Returns

HTMLElement[][]

Inherited from

View.getRibbonPanels

Defined in

src/views/view.ts:141


handlePath

handlePath(path): void

Handles URL path.

Parameters

NameTypeDescription
pathstringURL path.

Returns

void

Inherited from

View.handlePath

Defined in

src/views/view.ts:173


initDock

initDock(): string

Returns

string

Defined in

src/views/view.ts:721


loadLayout

loadLayout(layout, pickupColumnTags?): void

Loads previously saved view layout. Only applicable to certain views, such as TableView. See also saveLayout

Parameters

NameType
layoutViewLayout
pickupColumnTags?boolean

Returns

void

Inherited from

View.loadLayout

Defined in

src/views/view.ts:295


loadStateMap

loadStateMap(stateMap): void

Load view state map.

Parameters

NameTypeDescription
stateMapobjectState map.

Returns

void

Inherited from

View.loadStateMap

Defined in

src/views/view.ts:157


saveLayout

saveLayout(): ViewLayout

Saves view layout as a string. Only applicable to certain views, such as TableView. See also loadLayout

Returns

ViewLayout

Inherited from

View.saveLayout

Defined in

src/views/view.ts:303


saveStateMap

saveStateMap(): null | object

Returns

null | object

Viewer state map.

Inherited from

View.saveStateMap

Defined in

src/views/view.ts:151


setRibbonPanels

setRibbonPanels(panels, clear?): void

Sets custom view panels on the ribbon.

Parameters

NameTypeDefault valueDescription
panelsHTMLElement[][]undefined
clearbooleantrueClear all previous before setup Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon

Returns

void

Inherited from

View.setRibbonPanels

Defined in

src/views/view.ts:137


create

Static create(options?): View

Creates a new empty view.

Parameters

NameType
options?null | string | {}

Returns

View

Inherited from

View.create

Defined in

src/views/view.ts:248


createByType

Static createByType(viewType, options?): View

Creates one of the standard views based on the view type (such as 'functions')

Parameters

NameType
viewTypestring
options?any

Returns

View

Inherited from

View.createByType

Defined in

src/views/view.ts:256


forObject

Static forObject(x): null | View

Creates a view for the specified object, if it is registered, or null otherwise.

Parameters

NameType
xany

Returns

null | View

Inherited from

View.forObject

Defined in

src/views/view.ts:235


fromDart

Static fromDart(dart): View | TableView

Parameters

NameType
dartany

Returns

View | TableView

Inherited from

View.fromDart

Defined in

src/views/view.ts:226


fromRoot

Static fromRoot(root): View

Parameters

NameType
rootHTMLElement

Returns

View

Inherited from

View.fromRoot

Defined in

src/views/view.ts:239