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.
Extends
Constructors
new TableView()
new TableView(
dart):TableView
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Overrides
Constructs
TableView
Source
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | View._functions |
_name | protected | string | 'New View' | - | View._name |
_properties | protected | Property[] | [] | - | View._properties |
_root | protected | HTMLElement | undefined | - | View._root |
dart | public | any | undefined | - | View.dart |
factory | public | null | Func | null | Constructor function. No parameters, returns [Widget]. | View.factory |
isDetached | public | boolean | false | - | View.isDetached |
props | public | any | undefined | - | View.props |
subs | public | Subscription[] | undefined | - | View.subs |
temp | public | any | undefined | Contains auxiliary information | View.temp |
ALL_VIEW_TYPES | readonly | string[] | ... | - | View.ALL_VIEW_TYPES |
APPS | readonly | "apps" | 'apps' | - | View.APPS |
BROWSE | readonly | "browse" | 'browse' | - | View.BROWSE |
DATABASES | readonly | "databases" | 'databases' | - | View.DATABASES |
DATA_CONNECTIONS | readonly | "connections" | 'connections' | - | View.DATA_CONNECTIONS |
DATA_JOB_RUNS | readonly | "jobs" | 'jobs' | - | View.DATA_JOB_RUNS |
DATA_QUERY_RUNS | readonly | "queryruns" | 'queryruns' | - | View.DATA_QUERY_RUNS |
DOCKERS | readonly | "dockers" | 'dockers' | - | View.DOCKERS |
EMAILS | readonly | "emails" | 'emails' | - | View.EMAILS |
FILES | readonly | "files" | 'files' | - | View.FILES |
FORUM | readonly | "forum" | 'forum' | - | View.FORUM |
FUNCTIONS | readonly | "functions" | 'functions' | - | View.FUNCTIONS |
GROUPS | readonly | "groups" | 'groups' | - | View.GROUPS |
HELP | readonly | "help" | 'help' | - | View.HELP |
JS_EDITOR | readonly | "js" | 'js' | - | View.JS_EDITOR |
MODELS | readonly | "models" | 'models' | - | View.MODELS |
NOTEBOOKS | readonly | "notebooks" | 'notebooks' | - | View.NOTEBOOKS |
OPEN_TEXT | readonly | "text" | 'text' | - | View.OPEN_TEXT |
PACKAGES | readonly | "packages" | 'packages' | - | View.PACKAGES |
PACKAGE_REPOSITORIES | readonly | "repositories" | 'repositories' | - | View.PACKAGE_REPOSITORIES |
PROJECTS | readonly | "projects" | 'projects' | - | View.PROJECTS |
QUERIES | readonly | "queries" | 'queries' | - | View.QUERIES |
SCRIPT | readonly | "script" | 'script' | - | View.SCRIPT |
SCRIPTS | readonly | "scripts" | 'scripts' | - | View.SCRIPTS |
SETTINGS | readonly | "settings" | 'settings' | - | View.SETTINGS |
SKETCH | readonly | "sketch" | 'sketch' | - | View.SKETCH |
USERS | readonly | "users" | 'users' | - | View.USERS |
VIEW_LAYOUTS | readonly | "layouts" | 'layouts' | - | View.VIEW_LAYOUTS |
WEB_SERVICES | readonly | "webservices" | 'webservices' | - | View.WEB_SERVICES |
WELCOME | readonly | "welcome" | 'welcome' | - | View.WELCOME |
Accessors
basePath
getbasePath():string
Deprecated
use path instead
setbasePath(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
box
getbox():boolean
setbox(b):void
Parameters
| Parameter | Type |
|---|---|
b | boolean |
Returns
boolean
Source
children
getchildren():Widget<any>[]
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Source
closing
getclosing():boolean
Whether the view is currently closing.
setclosing(c):void
Parameters
| Parameter | Type |
|---|---|
c | boolean |
Returns
boolean
Source
dataFrame
getdataFrame():DataFrame
setdataFrame(x):void
Parameters
| Parameter | Type |
|---|---|
x | DataFrame |
Returns
Source
description
getdescription():string
View description. Used in UI and AI.
setdescription(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
dockManager
getdockManager():DockManager
View's dock manager. Only defined for DockView descendants such as TableView, UsersView, etc.
Returns
Source
dockNode
getdockNode():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
Source
entity
getentity():null|object
setentity(_e):void
Parameters
| Parameter | Type |
|---|---|
_e | null | object |
Returns
null | object
Source
grid
getgrid():Grid
Associated grid (spreadsheet).
Returns
Source
helpUrl
gethelpUrl():null|string
sethelpUrl(url):void
Parameters
| Parameter | Type |
|---|---|
url | null | string |
Returns
null | string
View help URL.
Source
id
getid():string
Returns
string
Source
isPinned
getisPinned():boolean
Returns
boolean
Whether the view is pinned. Pinned views are not closed when a new view is opened.
Source
name
getname():string
View name. It gets shown in the tab handle.
setname(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
parent
getparent():null|Widget<any>
Parent widget up the DOM tree, or null.
Returns
null | Widget<any>
Source
parentCall
getparentCall():undefined|FuncCall
setparentCall(s):void
Parameters
| Parameter | Type |
|---|---|
s | undefined | FuncCall |
Returns
undefined | FuncCall
Source
parentView
getparentView():ViewBase
setparentView(s):void
Parameters
| Parameter | Type |
|---|---|
s | ViewBase |
Returns
Source
path
getpath():string
View URI, relative to the view root
setpath(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
ribbonMenu
getribbonMenu():Menu
View menu. Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon
setribbonMenu(menu):void
Parameters
| Parameter | Type |
|---|---|
menu | Menu |
Returns
Source
root
getroot():HTMLElement
Returns the content (visual root) of this view.
Returns
HTMLElement
Source
statusBarPanels
getstatusBarPanels():HTMLDivElement[]
Status bar panels to be shown on the bottom
setstatusBarPanels(panels):void
Parameters
| Parameter | Type |
|---|---|
panels | HTMLDivElement[] |
Returns
HTMLDivElement[]
Source
syncCurrentObject
getsyncCurrentObject():boolean
setsyncCurrentObject(x):void
Parameters
| Parameter | Type |
|---|---|
x | boolean |
Returns
boolean
Source
table
gettable():null|DataFrame
Associated table, if it exists (for TableView), or null.
settable(df):void
Parameters
| Parameter | Type |
|---|---|
df | null | DataFrame |
Returns
null | DataFrame
Source
toolbox
gettoolbox():HTMLElement
View toolbox. Sample: https://public.datagrok.ai/js/samples/ui/views/toolbox
settoolbox(x):void
Parameters
| Parameter | Type |
|---|---|
x | HTMLElement |
Returns
HTMLElement
Source
toolboxPage
gettoolboxPage():ToolboxPage
View toolbox that gets shown on the left, in the sidebar
Returns
Source
type
gettype():string
View type
Returns
string
Source
viewers
getviewers():Iterable<Viewer<any>>
Returns all viewers.
Returns
Iterable <Viewer<any>>
Source
Methods
_onAdded()
_onAdded():
void
Returns
void
Inherited from
Source
acceptsPath()
acceptsPath(
_urlPath):boolean
Checks if URL path is acceptable. Override in subclasses.
Parameters
| Parameter | Type |
|---|---|
_urlPath | string |
Returns
boolean
"true" if path is acceptable, "false" otherwise.
Inherited from
Source
addProperty()
privateaddProperty(propertyName,propertyType,defaultValue,options):any
Registers an property with the specified type, name, and defaultValue.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
propertyName | string | undefined | |
propertyType | "string" | "bigint" | "object" | "map" | "file" | "view" | "blob" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "num" | "string_list" | "dataframe_list" | "cell" | "column" | "column_list" | "graphics" | "tablerowfiltercall" | "colfiltercall" | "bitset" | "dynamic" | "viewer" | "list" | "semantic_value" | "func" | "funccall" | "property" | "categorical" | "numerical" | "GridCellRenderArgs" | "element" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook" | undefined | |
defaultValue | any | null | |
options | null | object & IProperty | null |
Returns
any
Inherited from
See
Registered property gets added to properties. Returns default value, thus allowing to combine registering a property with the initialization
Source
addViewer()
addViewer(
v,options?):Viewer<any>
Adds a viewer of the specified type.
Parameters
| Parameter | Type |
|---|---|
v | string | Viewer<any> |
options? | any |
Returns
Viewer<any>
Source
append()
append(
item):HTMLElement
Appends an item to this view. Use appendAll for appending multiple elements.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | any |
Returns
HTMLElement
Inherited from
Source
appendAll()
appendAll(
items):HTMLElement
Appends multiple elements this view. Use append for appending a single element.
Parameters
| Parameter | Type | Description |
|---|---|---|
items | HTMLElement[] |
Returns
HTMLElement
Inherited from
Source
apply()
apply(
properties):Widget<any>
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | object |
Returns
Widget<any>
Inherited from
Source
barChart()
barChart(
options?):Viewer<any>
deprecated: use addViewer(Viewer.barChart(options)) Adds a bar chart. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/bar-chart
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IBarChartSettings> |
Returns
Viewer<any>
Source
boxPlot()
boxPlot(
options?):Viewer<any>
deprecated: use addViewer(Viewer.boxPlot(options)) Adds a box plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/box-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IBoxPlotSettings> |
Returns
Viewer<any>
Source
calendar()
calendar(
options?):Viewer<any>
deprecated: use addViewer(Viewer.calendar(options)) Adds a calendar. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/calendar
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | Partial <ICalendarSettings> |
Returns
Viewer<any>
Source
close()
close():
void
Closes this view.
Returns
void
Inherited from
Source
corrPlot()
corrPlot(
options?):Viewer<any>
deprecated: use addViewer(Viewer.corrPlot(options)) Adds a correlation plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/corr-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <ICorrelationPlotSettings> |
Returns
Viewer<any>
Source
densityPlot()
densityPlot(
options?):Viewer<any>
deprecated: use addViewer(Viewer.densityPlot(options)) Adds a density plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/density-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IDensityPlotSettings> |
Returns
Viewer<any>
Source
detach()
detach():
void
Detaches and closes the view.
Returns
void
Overrides
Source
detachViewers()
detachViewers():
void
Detaches all viewers.
Returns
void
Source
filters()
filters(
options?):Viewer<any>
deprecated: use addViewer(Viewer.filters(options)) Adds filters. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/filters
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IFiltersSettings> |
Returns
Viewer<any>
Source
form()
form(
options?):Viewer<any>
deprecated: use addViewer(Viewer.form(options)) Adds default form. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/form
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IFormSettings> |
Returns
Viewer<any>
Source
getDartProperties()
getDartProperties():
any[]
Returns
any[]
Inherited from
Source
getFiltersGroup()
getFiltersGroup(
options?):FilterGroup
Returns existing, or creates a new filter group.
Parameters
| Parameter | Type |
|---|---|
options? | object |
options.createDefaultFilters? | boolean |
Returns
Source
getFunctions()
getFunctions():
Func[]
Functions that are applicable to this particular widget. Used in the UI to display context actions, and for the AI integrations.
Returns
Func[]
Inherited from
Source
getIcon()
getIcon():
null|HTMLElement
Returns
null | HTMLElement
View icon. Override in subclasses.
Inherited from
Source
getInfo()
getInfo():
ViewLayout
Saves view as a ViewInfo. Only applicable to certain views, such as TableView.
Returns
Inherited from
Source
getProperties()
getProperties():
Property[]
Returns all properties of this widget.
Returns
Property[]
Inherited from
Source
getRibbonPanels()
getRibbonPanels():
HTMLElement[][]
Returns
HTMLElement[][]
Inherited from
Source
handlePath()
handlePath(
_urlPath):void
Handles URL path. Override in subclasses.
Parameters
| Parameter | Type |
|---|---|
_urlPath | string |
Returns
void
Inherited from
Source
heatMap()
heatMap(
options?):Viewer<any>
deprecated: use addViewer(Viewer.heatMap(options)) Adds a heat map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/heat-map
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IGridSettings> |
Returns
Viewer<any>
Source
histogram()
histogram(
options?):Viewer<any>
This and some of the following methods are "softly deprecated" (will likely be deprecated in 1.21): deprecated: use addViewer(Viewer.histogram(options)). Adds a histogram. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/histogram
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IHistogramSettings> |
Returns
Viewer<any>
Source
lineChart()
lineChart(
options?):Viewer<any>
deprecated: use addViewer(Viewer.histogram(options)) Adds a line chart. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/line-chart
Parameters
| Parameter | Type |
|---|---|
options? | Partial <ILineChartSettings> |
Returns
Viewer<any>
Source
loadLayout()
loadLayout(
layout,pickupColumnTags?):void
Loads previously saved view layout. Only applicable to certain views, such as TableView. See also saveLayout
Parameters
| Parameter | Type |
|---|---|
layout | ViewLayout |
pickupColumnTags? | boolean |
Returns
void
Inherited from
Source
loadState()
loadState(
x,options?):void
Parameters
| Parameter | Type |
|---|---|
x | string |
options? | IViewStateApplicationOptions |
Returns
void
Source
loadStateMap()
loadStateMap(
_stateMap):void
Loads view state map. Override in subclasses.
Parameters
| Parameter | Type |
|---|---|
_stateMap | object |
Returns
void
Inherited from
Source
markup()
markup(
options?):Viewer<any>
deprecated: use addViewer(Viewer.markup(options)) Adds a markup viewer. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/markup
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IMarkupViewerSettings> |
Returns
Viewer<any>
Source
matrixPlot()
matrixPlot(
options?):Viewer<any>
deprecated: use addViewer(Viewer.matrixPlot(options)) Adds a matrix plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/matrix-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IMatrixPlotSettings> |
Returns
Viewer<any>
Source
networkDiagram()
networkDiagram(
options?):Viewer<any>
deprecated: use addViewer(Viewer.networkDiagram(options)) Adds a network diagram. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/network-diagram
Parameters
| Parameter | Type |
|---|---|
options? | Partial <INetworkDiagramSettings> |
Returns
Viewer<any>
Source
onFrameAttached()
onFrameAttached(
dataFrame):void
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
Source
onPropertyChanged()
onPropertyChanged(
property):void
Gets called when viewer's property is changed.
Parameters
| Parameter | Type | Description |
|---|---|---|
property | null | Property | or null, if multiple properties were changed. |
Returns
void
Inherited from
Source
pcPlot()
pcPlot(
options?):Viewer<any>
deprecated: use addViewer(Viewer.pcPlot(options)) Adds a parallel coordinates plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/pc-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IPcPlotSettings> |
Returns
Viewer<any>
Source
pieChart()
pieChart(
options?):Viewer<any>
deprecated: use addViewer(Viewer.pieChart(options)) Adds a pie chart. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/pie-chart
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IPieChartSettings> |
Returns
Viewer<any>
Source
pin()
pin():
void
Pins the view. Pinned views are not closed when a new view is opened.
Returns
void
Inherited from
Source
reloadData()
reloadData(
options?):Promise<void>
Re-runs the table creation script (for dynamic data), and executes post-processing if enrich is true.
Parameters
| Parameter | Type |
|---|---|
options? | object |
options.enrich? | boolean |
Returns
Promise<void>
Source
resetLayout()
resetLayout():
void
Resets view layout, leaving only grid visible.
Returns
void
Source
saveLayout()
saveLayout(
options?):ViewLayout
Saves view layout as a string. Only applicable to certain views, such as TableView. See also loadLayout
Parameters
| Parameter | Type |
|---|---|
options? | object |
options.saveWithData? | boolean |
Returns
Inherited from
Source
saveState()
saveState():
string
Returns
string
Source
saveStateMap()
saveStateMap():
null|object
Returns
null | object
Viewer state map. Override in subclasses.
Inherited from
Source
scatterPlot()
scatterPlot(
options?):ScatterPlotViewer
deprecated: use addViewer(Viewer.scatterPlot(options)) Adds a scatter plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/scatter-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IScatterPlotSettings> |
Returns
Source
scatterPlot3d()
scatterPlot3d(
options?):Viewer<any>
deprecated: use addViewer(Viewer.scatterPlot3d(options)) Adds a 3D scatter plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/scatter-plot-3d
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IScatterPlot3dSettings> |
Returns
Viewer<any>
Source
setIcon()
setIcon(
icon):void
Parameters
| Parameter | Type |
|---|---|
icon | HTMLElement |
Returns
void
Inherited from
Source
setRibbonPanels()
setRibbonPanels(
panels,clear):void
Sets custom view panels on the ribbon.
Parameters
| Parameter | 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
Source
shapeMap()
shapeMap(
options?):Viewer<any>
deprecated: use addViewer(Viewer.shapeMap(options)) Adds a shape map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/shape-map
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IMapViewerSettings> |
Returns
Viewer<any>
Source
sourceRowsChanged()
sourceRowsChanged():
void
Returns
void
Inherited from
Source
statistics()
statistics(
options?):Viewer<any>
deprecated: use addViewer(Viewer.statistics(options)) Adds a statistics. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/statistics
Parameters
| Parameter | Type |
|---|---|
options? | Partial <IStatsViewerSettings> |
Returns
Viewer<any>
Source
sub()
sub(
subscription):void
Registers a subscription to an external event.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscription | Subscription |
Returns
void
Inherited from
Source
tileViewer()
tileViewer(
options?):Viewer<any>
deprecated: use addViewer(Viewer.histogram(options)) Adds a tile viewer. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/tile-viewer
Parameters
| Parameter | Type |
|---|---|
options? | Partial <ITileViewerSettings> |
Returns
Viewer<any>
Source
toDart()
toDart():
any
Returns
any
Inherited from
Source
treeMap()
treeMap(
options?):Viewer<any>
deprecated: use addViewer(Viewer.treeMap(options)) Adds a tree map. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/tree-map
Parameters
| Parameter | Type |
|---|---|
options? | Partial <ITreeMapSettings> |
Returns
Viewer<any>
Source
trellisPlot()
trellisPlot(
options?):Viewer<any>
deprecated: use addViewer(Viewer.trellisPlot(options)) Adds a trellis plot. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/trellis-plot
Parameters
| Parameter | Type |
|---|---|
options? | Partial <ITrellisPlotSettings> |
Returns
Viewer<any>
Source
wordCloud()
wordCloud(
options?):Viewer<any>
Adds a word cloud. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/word-cloud
Parameters
| Parameter | Type |
|---|---|
options? | any |
Returns
Viewer<any>
Deprecated
Source
create()
staticcreate(table,addToWorkspace):TableView
Creates a new table view, and adds it to the workspace if specified
Parameters
| Parameter | Type | Default value |
|---|---|---|
table | DataFrame | undefined |
addToWorkspace | boolean | true |
Returns
Overrides
Source
createByType()
staticcreateByType(viewType,options?):View
Creates one of the standard views based on the view type (such as 'functions')
Parameters
| Parameter | Type |
|---|---|
viewType | string |
options? | any |
Returns
Inherited from
Source
find()
staticfind(root):null|Widget<any>
Finds existing widget from its visual root.
Parameters
| Parameter | Type |
|---|---|
root | Element |
Returns
null | Widget<any>
Inherited from
Source
forObject()
staticforObject(x):null|View
Creates a view for the specified object, if it is registered, or null otherwise.
Parameters
| Parameter | Type |
|---|---|
x | any |
Returns
null | View
Inherited from
Source
fromDart()
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Inherited from
Source
fromRoot()
staticfromRoot(root):View
Creates and returns a view with the specified element inside.
Parameters
| Parameter | Type |
|---|---|
root | HTMLElement |
Returns
Inherited from
Source
fromViewAsync()
staticfromViewAsync(getViewAsync,ribbon):any
Parameters
| Parameter | Type | Default value |
|---|---|---|
getViewAsync | () => Promise <View> | undefined |
ribbon | boolean | true |
Returns
any
Inherited from
Source
getAll()
staticgetAll():Widget<any>[]
Returns all currently active widgets.
Returns
Widget<any>[]