Class: TableView
dg.TableView
A View that is associated with a DataFrame and exposes exploratory data analysis functionality. This view gets opened whenever a new table is added to the workspace when a user drag-and-drops a CSV file, or opens a table in any other way.
Hierarchy
↳
TableView
Constructors
constructor
• new TableView(dart
)
Constructs
TableView
Parameters
Name | Type |
---|---|
dart | any |
Overrides
Defined in
Properties
_name
• Protected
_name: string
= 'New View'
Inherited from
Defined in
_root
• Protected
_root: HTMLElement
Inherited from
Defined in
dart
• dart: any
Inherited from
Defined in
subs
• subs: Subscription
[]
Inherited from
Defined in
temp
• temp: any
Contains auxiliary information
Inherited from
Defined in
ALL_VIEW_TYPES
▪ Static
Readonly
ALL_VIEW_TYPES: string
[]
Inherited from
Defined in
APPS
▪ Static
Readonly
APPS: "apps"
Inherited from
Defined in
DATABASES
▪ Static
Readonly
DATABASES: "databases"
Inherited from
Defined in
DATA_CONNECTIONS
▪ Static
Readonly
DATA_CONNECTIONS: "connections"
Inherited from
Defined in
DATA_JOB_RUNS
▪ Static
Readonly
DATA_JOB_RUNS: "jobs"
Inherited from
Defined in
DATA_QUERY_RUNS
▪ Static
Readonly
DATA_QUERY_RUNS: "queryruns"
Inherited from
Defined in
EMAILS
▪ Static
Readonly
EMAILS: "emails"
Inherited from
Defined in
FILES
▪ Static
Readonly
FILES: "files"
Inherited from
Defined in
FORUM
▪ Static
Readonly
FORUM: "forum"
Inherited from
Defined in
FUNCTIONS
▪ Static
Readonly
FUNCTIONS: "functions"
Inherited from
Defined in
GROUPS
▪ Static
Readonly
GROUPS: "groups"
Inherited from
Defined in
HELP
▪ Static
Readonly
HELP: "help"
Inherited from
Defined in
JS_EDITOR
▪ Static
Readonly
JS_EDITOR: "js"
Inherited from
Defined in
MODELS
▪ Static
Readonly
MODELS: "models"
Inherited from
Defined in
NOTEBOOKS
▪ Static
Readonly
NOTEBOOKS: "notebooks"
Inherited from
Defined in
OPEN_TEXT
▪ Static
Readonly
OPEN_TEXT: "text"
Inherited from
Defined in
PACKAGES
▪ Static
Readonly
PACKAGES: "packages"
Inherited from
Defined in
PACKAGE_REPOSITORIES
▪ Static
Readonly
PACKAGE_REPOSITORIES: "repositories"
Inherited from
Defined in
PROJECTS
▪ Static
Readonly
PROJECTS: "projects"
Inherited from
Defined in
QUERIES
▪ Static
Readonly
QUERIES: "queries"
Inherited from
Defined in
SCRIPT
▪ Static
Readonly
SCRIPT: "script"
Inherited from
Defined in
SCRIPTS
▪ Static
Readonly
SCRIPTS: "scripts"
Inherited from
Defined in
SETTINGS
▪ Static
Readonly
SETTINGS: "settings"
Inherited from
Defined in
SKETCH
▪ Static
Readonly
SKETCH: "sketch"
Inherited from
Defined in
USERS
▪ Static
Readonly
USERS: "users"
Inherited from
Defined in
VIEW_LAYOUTS
▪ Static
Readonly
VIEW_LAYOUTS: "layouts"
Inherited from
Defined in
WEB_SERVICES
▪ Static
Readonly
WEB_SERVICES: "webservices"
Inherited from
Defined in
WELCOME
▪ Static
Readonly
WELCOME: "welcome"
Inherited from
Defined in
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
• set
basePath(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Inherited from
View.basePath
Defined in
box
• get
box(): boolean
Returns
boolean
Inherited from
View.box
Defined in
• set
box(b
): void
Parameters
Name | Type |
---|---|
b | boolean |
Returns
void
Inherited from
View.box
Defined in
closing
• get
closing(): boolean
Whether the view is currently closing.
Returns
boolean
Inherited from
View.closing
Defined in
• set
closing(c
): void
Parameters
Name | Type |
---|---|
c | boolean |
Returns
void
Inherited from
View.closing
Defined in
dataFrame
• get
dataFrame(): DataFrame
Returns
Defined in
• set
dataFrame(x
): void
Parameters
Name | Type |
---|---|
x | DataFrame |
Returns
void
Defined in
description
• get
description(): string
Returns
string
Inherited from
View.description
Defined in
• set
description(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Inherited from
View.description
Defined in
dockManager
• get
dockManager(): DockManager
View's dock manager. Only defined for DockView descendants such as TableView, UsersView, etc.
Returns
Defined in
dockNode
• get
dockNode(): DockNode
A dock node for this view.
Use grok.shell.dockManager
to manipulate it; dockManager is for controlling
windows that reside inside this view.
Returns
Defined in
entity
• get
entity(): null
| object
Returns
null
| object
Inherited from
View.entity
Defined in
• set
entity(e
): void
Parameters
Name | Type |
---|---|
e | null | object |
Returns
void
Inherited from
View.entity
Defined in
grid
• get
grid(): Grid
Associated grid (spreadsheet).
Returns
Defined in
helpUrl
• get
helpUrl(): null
| string
Returns
null
| string
View help URL.
Inherited from
View.helpUrl
Defined in
• set
helpUrl(url
): void
Parameters
Name | Type |
---|---|
url | null | string |
Returns
void
Inherited from
View.helpUrl
Defined in
id
• get
id(): string
Returns
string
Inherited from
View.id
Defined in
name
• get
name(): string
View name. It gets shown in the tab handle.
Returns
string
Inherited from
View.name
Defined in
• set
name(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Inherited from
View.name
Defined in
parentCall
• get
parentCall(): undefined
| FuncCall
Returns
undefined
| FuncCall
Inherited from
View.parentCall
Defined in
• set
parentCall(s
): void
Parameters
Name | Type |
---|---|
s | undefined | FuncCall |
Returns
void
Inherited from
View.parentCall
Defined in
parentView
• get
parentView(): ViewBase
Returns
Inherited from
View.parentView
Defined in
• set
parentView(s
): void
Parameters
Name | Type |
---|---|
s | ViewBase |
Returns
void
Inherited from
View.parentView
Defined in
path
• get
path(): string
View URI, relative to the platform root. See also basePath
Returns
string
Inherited from
View.path
Defined in
• set
path(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Inherited from
View.path
Defined in
ribbonMenu
• get
ribbonMenu(): Menu
View menu. Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon
Returns
Inherited from
View.ribbonMenu
Defined in
• set
ribbonMenu(menu
): void
Parameters
Name | Type |
---|---|
menu | Menu |
Returns
void
Inherited from
View.ribbonMenu
Defined in
root
• get
root(): HTMLElement
Returns
HTMLElement
Inherited from
View.root
Defined in
statusBarPanels
• get
statusBarPanels(): HTMLDivElement
[]
Status bar panels to be shown on the bottom
Returns
HTMLDivElement
[]
Inherited from
View.statusBarPanels
Defined in
• set
statusBarPanels(panels
): void
Parameters
Name | Type |
---|---|
panels | HTMLDivElement [] |
Returns
void
Inherited from
View.statusBarPanels
Defined in
syncCurrentObject
• get
syncCurrentObject(): boolean
Returns
boolean
Defined in
• set
syncCurrentObject(x
): void
Parameters
Name | Type |
---|---|
x | boolean |
Returns
void
Defined in
table
• get
table(): null
| DataFrame
Associated table, if it exists (for TableView), or null.
Returns
null
| DataFrame
Defined in
toolbox
• get
toolbox(): HTMLElement
View toolbox. Sample: https://public.datagrok.ai/js/samples/ui/views/toolbox
Returns
HTMLElement
Inherited from
View.toolbox
Defined in
• set
toolbox(x
): void
Parameters
Name | Type |
---|---|
x | HTMLElement |
Returns
void
Inherited from
View.toolbox
Defined in
toolboxPage
• get
toolboxPage(): ToolboxPage
View toolbox that gets shown on the left, in the sidebar
Returns
Defined in
type
• get
type(): string
View type
Returns
string
Inherited from
View.type
Defined in
viewers
• get
viewers(): Iterable
<Viewer
<any
>>
Returns all viewers.
Returns
Iterable
<Viewer
<any
>>
Defined in
Methods
_onAdded
▸ _onAdded(): void
Returns
void
Inherited from
Defined in
acceptsPath
▸ acceptsPath(path
): boolean
Checks if URL path is acceptable.
Parameters
Name | Type | Description |
---|---|---|
path | string | URL path. |
Returns
boolean
"true" if path is acceptable, "false" otherwise.
Inherited from
Defined in
addViewer
▸ addViewer(v
, options?
): Viewer
<any
>
Adds a viewer of the specified type.
Parameters
Name | Type | Default value |
---|---|---|
v | string | Viewer <any > | undefined |
options | null | object | null |
Returns
Viewer
<any
>
Defined in
append
▸ append(item
): HTMLElement
Appends an item to this view. Use appendAll for appending multiple elements.
Parameters
Name | Type |
---|---|
item | any |
Returns
HTMLElement
Inherited from
Defined in
appendAll
▸ appendAll(items
): HTMLElement
Appends multiple elements this view. Use append for appending a single element.
Parameters
Name | Type |
---|---|
items | HTMLElement [] |
Returns
HTMLElement
Inherited from
Defined in
barChart
▸ barChart(options?
): Viewer
<any
>
Adds a bar chart. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/bar-chart
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
boxPlot
▸ boxPlot(options?
): Viewer
<any
>
Adds a box plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/box-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
calendar
▸ calendar(options?
): Viewer
<any
>
Adds a calendar. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/calendar
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
close
▸ close(): void
Closes this view.
Returns
void
Inherited from
Defined in
corrPlot
▸ corrPlot(options?
): Viewer
<any
>
Adds a correlation plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/corr-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
densityPlot
▸ densityPlot(options?
): Viewer
<any
>
Adds a density plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/density-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
detach
▸ detach(): void
Detaches and closes the view.
Returns
void
Overrides
Defined in
detachViewers
▸ detachViewers(): void
Detaches all viewers.
Returns
void
Defined in
filters
▸ filters(options?
): Viewer
<any
>
Adds filters. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/filters
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
form
▸ form(options?
): Viewer
<any
>
Adds default form. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/form
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
getFiltersGroup
▸ getFiltersGroup(options?
): FilterGroup
Returns existing, or creates a new filter group.
Parameters
Name | Type |
---|---|
options? | Object |
options.createDefaultFilters? | boolean |
Returns
Defined in
getIcon
▸ getIcon(): null
| HTMLElement
Returns
null
| HTMLElement
View icon.
Inherited from
Defined in
getInfo
▸ getInfo(): ViewLayout
Saves view as a ViewInfo. Only applicable to certain views, such as TableView.
Returns
Inherited from
Defined in
getRibbonPanels
▸ getRibbonPanels(): HTMLElement
[][]
Returns
HTMLElement
[][]
Inherited from
Defined in
googleMap
▸ googleMap(options?
): Viewer
<any
>
Adds a geographical map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/google-map
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
handlePath
▸ handlePath(path
): void
Handles URL path.
Parameters
Name | Type | Description |
---|---|---|
path | string | URL path. |
Returns
void
Inherited from
Defined in
heatMap
▸ heatMap(options?
): Viewer
<any
>
Adds a heat map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/heat-map
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
histogram
▸ histogram(options?
): Viewer
<any
>
Adds a histogram. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/histogram
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
lineChart
▸ lineChart(options?
): Viewer
<any
>
Adds a line chart. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/line-chart
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
loadLayout
▸ loadLayout(layout
, pickupColumnTags?
): void
Loads previously saved view layout. Only applicable to certain views, such as TableView. See also saveLayout
Parameters
Name | Type |
---|---|
layout | ViewLayout |
pickupColumnTags? | boolean |
Returns
void
Inherited from
Defined in
loadState
▸ loadState(x
, options?
): void
Parameters
Name | Type |
---|---|
x | string |
options? | IViewStateApplicationOptions |
Returns
void
Defined in
loadStateMap
▸ loadStateMap(stateMap
): void
Load view state map.
Parameters
Name | Type | Description |
---|---|---|
stateMap | object | State map. |
Returns
void
Inherited from
Defined in
markup
▸ markup(options?
): Viewer
<any
>
Adds a markup viewer. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/markup
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
matrixPlot
▸ matrixPlot(options?
): Viewer
<any
>
Adds a matrix plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/matrix-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
networkDiagram
▸ networkDiagram(options?
): Viewer
<any
>
Adds a network diagram. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/network-diagram
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
pcPlot
▸ pcPlot(options?
): Viewer
<any
>
Adds a parallel coordinates plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/pc-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
pieChart
▸ pieChart(options?
): Viewer
<any
>
Adds a pie chart. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/pie-chart
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
resetLayout
▸ resetLayout(): void
Resets view layout, leaving only grid visible.
Returns
void
Defined in
saveLayout
▸ saveLayout(): ViewLayout
Saves view layout as a string. Only applicable to certain views, such as TableView. See also loadLayout
Returns
Inherited from
Defined in
saveState
▸ saveState(): string
Returns
string
Defined in
saveStateMap
▸ saveStateMap(): null
| object
Returns
null
| object
Viewer state map.
Inherited from
Defined in
scatterPlot
▸ scatterPlot(options?
): ScatterPlotViewer
Adds a scatter plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/scatter-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Defined in
scatterPlot3d
▸ scatterPlot3d(options?
): Viewer
<any
>
Adds a 3D scatter plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/scatter-plot-3d
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
setRibbonPanels
▸ setRibbonPanels(panels
, clear?
): void
Sets custom view panels on the ribbon.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
panels | HTMLElement [][] | undefined | |
clear | boolean | true | Clear all previous before setup Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon |
Returns
void
Inherited from
Defined in
shapeMap
▸ shapeMap(options?
): Viewer
<any
>
Adds a shape map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/shape-map
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
statistics
▸ statistics(options?
): Viewer
<any
>
Adds a statistics. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/statistics
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
tileViewer
▸ tileViewer(options?
): Viewer
<any
>
Adds a tile viewer. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/tile-viewer
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
treeMap
▸ treeMap(options?
): Viewer
<any
>
Adds a tree map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/tree-map
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
trellisPlot
▸ trellisPlot(options?
): Viewer
<any
>
Adds a trellis plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/trellis-plot
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
wordCloud
▸ wordCloud(options?
): Viewer
<any
>
Adds a word cloud. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/word-cloud
Deprecated
Parameters
Name | Type | Default value |
---|---|---|
options | null | object | null |
Returns
Viewer
<any
>
Defined in
create
▸ Static
create(table
, addToWorkspace?
): TableView
Creates a new table view, and adds it to the workspace if specified
Parameters
Name | Type | Default value |
---|---|---|
table | DataFrame | undefined |
addToWorkspace | boolean | true |
Returns
Overrides
Defined in
createByType
▸ Static
createByType(viewType
, options?
): View
Creates one of the standard views based on the view type (such as 'functions')
Parameters
Name | Type |
---|---|
viewType | string |
options? | any |
Returns
Inherited from
Defined in
forObject
▸ Static
forObject(x
): null
| View
Creates a view for the specified object, if it is registered, or null otherwise.
Parameters
Name | Type |
---|---|
x | any |
Returns
null
| View
Inherited from
Defined in
fromDart
▸ Static
fromDart(dart
): View
| TableView
Parameters
Name | Type |
---|---|
dart | any |
Returns
Inherited from
Defined in
fromRoot
▸ Static
fromRoot(root
): View
Parameters
Name | Type |
---|---|
root | HTMLElement |