TableView
Defined in: js-api/src/views/view.ts:419
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
Constructor
new TableView(
dart):TableView
Defined in: js-api/src/views/view.ts:421
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
TableView
Constructs
TableView
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | View._functions | js-api/src/widgets/base.ts:214 |
_name | protected | string | 'New View' | - | View._name | js-api/src/views/view.ts:106 |
_properties | protected | Property[] | [] | - | View._properties | js-api/src/widgets/base.ts:213 |
_root | protected | HTMLElement | undefined | - | View._root | js-api/src/u2core/component.ts:445 |
_u2 | readonly | ComponentState | undefined | - | View._u2 | js-api/src/u2core/component.ts:82 |
componentMeta? | public | ComponentMetaBase | undefined | The registry metadata of the tag that built this component, stamped by the spec renderer — the single source the introspection surface below is generated from. | View.componentMeta | js-api/src/u2core/component.ts:77 |
dart | public | any | undefined | - | View.dart | js-api/src/views/view.ts:46 |
factory | public | Func | null | null | Constructor function. No parameters, returns [Widget]. | View.factory | js-api/src/widgets/base.ts:211 |
isDetached | public | boolean | false | - | View.isDetached | js-api/src/widgets/base.ts:218 |
props | public | any | undefined | - | View.props | js-api/src/widgets/base.ts:215 |
specProps? | public | Record<string, unknown> | undefined | The props the registry's create was handed, stamped alongside componentMeta: the last resort of the property read below, for a component that keeps a prop under another name or not at all (a create wrapping a bare element). Construction-time values — a live one always wins. | View.specProps | js-api/src/u2core/component.ts:81 |
subs | public | Subscription[] | undefined | - | View.subs | js-api/src/views/view.ts:47 |
temp | public | any | undefined | Contains auxiliary information | View.temp | js-api/src/views/view.ts:238 |
ALL_VIEW_TYPES | readonly | string[] | undefined | - | View.ALL_VIEW_TYPES | js-api/src/views/view.ts:404 |
APPS | readonly | "apps" | 'apps' | - | View.APPS | js-api/src/views/view.ts:374 |
BROWSE | readonly | "browse" | 'browse' | - | View.BROWSE | js-api/src/views/view.ts:401 |
DATA_CONNECTIONS | readonly | "connections" | 'connections' | - | View.DATA_CONNECTIONS | js-api/src/views/view.ts:388 |
DATA_JOB_RUNS | readonly | "jobs" | 'jobs' | - | View.DATA_JOB_RUNS | js-api/src/views/view.ts:389 |
DATA_QUERY_RUNS | readonly | "queryruns" | 'queryruns' | - | View.DATA_QUERY_RUNS | js-api/src/views/view.ts:391 |
DATABASES | readonly | "databases" | 'databases' | - | View.DATABASES | js-api/src/views/view.ts:384 |
DOCKERS | readonly | "dockers" | 'dockers' | - | View.DOCKERS | js-api/src/views/view.ts:402 |
EMAILS | readonly | "emails" | 'emails' | - | View.EMAILS | js-api/src/views/view.ts:392 |
FILES | readonly | "files" | 'files' | - | View.FILES | js-api/src/views/view.ts:390 |
FORUM | readonly | "forum" | 'forum' | - | View.FORUM | js-api/src/views/view.ts:379 |
FUNCTIONS | readonly | "functions" | 'functions' | - | View.FUNCTIONS | js-api/src/views/view.ts:387 |
GROUPS | readonly | "groups" | 'groups' | - | View.GROUPS | js-api/src/views/view.ts:393 |
HELP | readonly | "help" | 'help' | - | View.HELP | js-api/src/views/view.ts:382 |
JS_EDITOR | readonly | "js" | 'js' | - | View.JS_EDITOR | js-api/src/views/view.ts:400 |
MODELS | readonly | "models" | 'models' | - | View.MODELS | js-api/src/views/view.ts:394 |
NOTEBOOKS | readonly | "notebooks" | 'notebooks' | - | View.NOTEBOOKS | js-api/src/views/view.ts:381 |
OPEN_TEXT | readonly | "text" | 'text' | - | View.OPEN_TEXT | js-api/src/views/view.ts:383 |
PACKAGE_REPOSITORIES | readonly | "repositories" | 'repositories' | - | View.PACKAGE_REPOSITORIES | js-api/src/views/view.ts:399 |
PACKAGES | readonly | "packages" | 'packages' | - | View.PACKAGES | js-api/src/views/view.ts:398 |
PROJECTS | readonly | "projects" | 'projects' | - | View.PROJECTS | js-api/src/views/view.ts:380 |
QUERIES | readonly | "queries" | 'queries' | - | View.QUERIES | js-api/src/views/view.ts:395 |
SCRIPT | readonly | "script" | 'script' | - | View.SCRIPT | js-api/src/views/view.ts:377 |
SCRIPTS | readonly | "scripts" | 'scripts' | - | View.SCRIPTS | js-api/src/views/view.ts:396 |
SETTINGS | readonly | "settings" | 'settings' | - | View.SETTINGS | js-api/src/views/view.ts:375 |
SKETCH | readonly | "sketch" | 'sketch' | - | View.SKETCH | js-api/src/views/view.ts:378 |
USERS | readonly | "users" | 'users' | - | View.USERS | js-api/src/views/view.ts:397 |
VIEW_LAYOUTS | readonly | "layouts" | 'layouts' | - | View.VIEW_LAYOUTS | js-api/src/views/view.ts:386 |
WEB_SERVICES | readonly | "webservices" | 'webservices' | - | View.WEB_SERVICES | js-api/src/views/view.ts:385 |
WELCOME | readonly | "welcome" | 'welcome' | - | View.WELCOME | js-api/src/views/view.ts:376 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: js-api/src/views/view.ts:249
AI briefing of the underlying view (widget-level on the Dart side). For a JS-defined view the Dart host forwards to the original ViewBase instance.
Returns
string | null
Set Signature
set aiDescription(
x):void
Defined in: js-api/src/views/view.ts:254
A short AI-facing briefing, seeded from the registry's usage or description.
Parameters
| Parameter | Type |
|---|---|
x | string | null |
Returns
void
Inherited from
ambientAdoption
Get Signature
get
protectedambientAdoption():boolean
Defined in: js-api/src/widgets/base.ts:272
A widget wrapper minted inside somebody's effect scope must not be auto-disposed with it.
Returns
boolean
Inherited from
basePath
Get Signature
get basePath():
string
Defined in: js-api/src/views/view.ts:131
Deprecated
use path instead
Returns
string
Set Signature
set basePath(
s):void
Defined in: js-api/src/views/view.ts:132
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
box
Get Signature
get box():
boolean
Defined in: js-api/src/views/view.ts:73
Returns
boolean
Set Signature
set box(
b):void
Defined in: js-api/src/views/view.ts:74
Parameters
| Parameter | Type |
|---|---|
b | boolean |
Returns
void
Inherited from
children
Get Signature
get children():
Widget<any>[]
Defined in: js-api/src/widgets/base.ts:304
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Inherited from
closing
Get Signature
get closing():
boolean
Defined in: js-api/src/views/view.ts:149
Whether the view is currently closing.
Returns
boolean
Set Signature
set closing(
c):void
Defined in: js-api/src/views/view.ts:150
Parameters
| Parameter | Type |
|---|---|
c | boolean |
Returns
void
Inherited from
dataFrame
Get Signature
get dataFrame():
DataFrame
Defined in: js-api/src/views/view.ts:447
Returns
Set Signature
set dataFrame(
x):void
Defined in: js-api/src/views/view.ts:448
Parameters
| Parameter | Type |
|---|---|
x | DataFrame |
Returns
void
description
Get Signature
get description():
string
Defined in: js-api/src/views/view.ts:324
View description. Used in UI and AI.
Returns
string
Set Signature
set description(
s):void
Defined in: js-api/src/views/view.ts:325
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
dockManager
Get Signature
get dockManager():
DockManager
Defined in: js-api/src/views/view.ts:488
View's dock manager. Only defined for DockView descendants such as TableView, UsersView, etc.
Returns
dockNode
Get Signature
get dockNode():
DockNode
Defined in: js-api/src/views/view.ts:481
A dock node for this view.
Use grok.shell.dockManager to manipulate it; dockManager is for controlling
windows that reside inside this view.
Returns
entity
Get Signature
get entity():
object|null
Defined in: js-api/src/views/view.ts:127
Returns
object | null
Set Signature
set entity(
_e):void
Defined in: js-api/src/views/view.ts:128
Parameters
| Parameter | Type |
|---|---|
_e | object | null |
Returns
void
Inherited from
grid
Get Signature
get grid():
Grid
Defined in: js-api/src/views/view.ts:440
Associated grid (spreadsheet).
Returns
helpUrl
Get Signature
get helpUrl():
string|null
Defined in: js-api/src/views/view.ts:328
Returns
string | null
View help URL.
Set Signature
set helpUrl(
url):void
Defined in: js-api/src/views/view.ts:329
Parameters
| Parameter | Type |
|---|---|
url | string | null |
Returns
void
View help URL.
Inherited from
id
Get Signature
get id():
string
Defined in: js-api/src/views/view.ts:319
Returns
string
Inherited from
isPinned
Get Signature
get isPinned():
boolean
Defined in: js-api/src/views/view.ts:180
Whether the view is pinned. Pinned views are not closed when a new view is opened.
Returns
boolean
Set Signature
set isPinned(
value):void
Defined in: js-api/src/views/view.ts:181
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
Inherited from
jsView
Get Signature
get jsView():
ViewBase|null
Defined in: js-api/src/views/view.ts:263
The original JS ViewBase instance when this view hosts a JS-defined view
(e.g. a plugin app view), null for native Dart views. Lets callers reach the actual
view class (its methods, tools, state) from grok.shell.v.
Returns
ViewBase | null
Inherited from
name
Get Signature
get name():
string
Defined in: js-api/src/views/view.ts:356
View name. It gets shown in the tab handle.
Returns
string
Set Signature
set name(
s):void
Defined in: js-api/src/views/view.ts:361
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
parent
Get Signature
get parent():
Widget<any> |null
Defined in: js-api/src/widgets/base.ts:301
Parent widget up the DOM tree, or null.
Returns
Widget<any> | null
Inherited from
parentCall
Get Signature
get parentCall():
FuncCall|undefined
Defined in: js-api/src/views/view.ts:118
Returns
FuncCall | undefined
Set Signature
set parentCall(
s):void
Defined in: js-api/src/views/view.ts:119
Parameters
| Parameter | Type |
|---|---|
s | FuncCall | undefined |
Returns
void
Inherited from
parentView
Get Signature
get parentView():
ViewBase
Defined in: js-api/src/views/view.ts:121
Returns
Set Signature
set parentView(
s):void
Defined in: js-api/src/views/view.ts:122
Parameters
| Parameter | Type |
|---|---|
s | ViewBase |
Returns
void
Inherited from
path
Get Signature
get path():
string
Defined in: js-api/src/views/view.ts:176
View URI, relative to the view root
Returns
string
Set Signature
set path(
s):void
Defined in: js-api/src/views/view.ts:177
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
propertyTarget
Get Signature
get propertyTarget():
unknown
Defined in: js-api/src/u2core/component.ts:250
What this component's properties are read from and written to — prop.get(target) /
prop.set(target, v): the component itself, unless an adoption says otherwise.
Returns
unknown
Inherited from
propertyTier
Get Signature
get propertyTier():
boolean
Defined in: js-api/src/widgets/base.ts:276
Every property getProperties declares is a bind step, read and written on propertyTarget.
Returns
boolean
Inherited from
ribbonMenu
Get Signature
get ribbonMenu():
Menu
Defined in: js-api/src/views/view.ts:141
View menu. Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon
Returns
Set Signature
set ribbonMenu(
menu):void
Defined in: js-api/src/views/view.ts:142
Parameters
| Parameter | Type |
|---|---|
menu | Menu |
Returns
void
Inherited from
root
Get Signature
get root():
HTMLElement
Defined in: js-api/src/views/view.ts:311
Returns the content (visual root) of this view.
Returns
HTMLElement
Inherited from
scope
Get Signature
get scope():
Scope
Defined in: js-api/src/u2core/component.ts:53
Minted on first use; assigned before _scopeMinted fires, so the hook's own
this.scope.own(...) reads the stored scope instead of re-entering the mint.
Returns
Inherited from
statusBarPanels
Get Signature
get statusBarPanels():
HTMLDivElement[]
Defined in: js-api/src/views/view.ts:145
Status bar panels to be shown on the bottom
Returns
HTMLDivElement[]
Set Signature
set statusBarPanels(
panels):void
Defined in: js-api/src/views/view.ts:146
Parameters
| Parameter | Type |
|---|---|
panels | HTMLDivElement[] |
Returns
void
Inherited from
syncCurrentObject
Get Signature
get syncCurrentObject():
boolean
Defined in: js-api/src/views/view.ts:678
Returns
boolean
Set Signature
set syncCurrentObject(
x):void
Defined in: js-api/src/views/view.ts:679
Parameters
| Parameter | Type |
|---|---|
x | boolean |
Returns
void
table
Get Signature
get table():
DataFrame|null
Defined in: js-api/src/views/view.ts:431
Associated table, if it exists (for TableView), or null.
Returns
DataFrame | null
Set Signature
set table(
df):void
Defined in: js-api/src/views/view.ts:435
Parameters
| Parameter | Type |
|---|---|
df | DataFrame | null |
Returns
void
toolbox
Get Signature
get toolbox():
HTMLElement
Defined in: js-api/src/views/view.ts:136
View toolbox. Sample: https://public.datagrok.ai/js/samples/ui/views/toolbox
Returns
HTMLElement
Set Signature
set toolbox(
x):void
Defined in: js-api/src/views/view.ts:137
Parameters
| Parameter | Type |
|---|---|
x | HTMLElement |
Returns
void
Inherited from
toolboxPage
Get Signature
get toolboxPage():
ToolboxPage
Defined in: js-api/src/views/view.ts:451
View toolbox that gets shown on the left, in the sidebar
Returns
type
Get Signature
get type():
string
Defined in: js-api/src/views/view.ts:315
View type
Returns
string
Inherited from
viewers
Get Signature
get viewers():
Viewer<any>[]
Defined in: js-api/src/views/view.ts:674
Returns all viewers. Resulting array is cloned, so cache the result and do not call repeatedly in inner loops.
Returns
Viewer<any>[]
Methods
_notifyPropertyChange()
protected_notifyPropertyChange(p):void
Defined in: js-api/src/widgets/base.ts:351
Notifies the property tier. Called from both the addProperty setter (overrides that skip
super would otherwise lose props.x = writes) and onPropertyChanged (direct calls);
the double notify collapses into one microtask refresh.
Parameters
| Parameter | Type |
|---|---|
p | Property | null |
Returns
void
Inherited from
_onAdded()
_onAdded():
void
Defined in: js-api/src/views/view.ts:369
Returns
void
Inherited from
_ownPropertyChanges()
protected_ownPropertyChanges():ObservableLike<PropertyChange>
Defined in: js-api/src/widgets/base.ts:356
Returns
ObservableLike<PropertyChange>
Inherited from
_scopeMinted()
protected_scopeMinted(_scope):void
Defined in: js-api/src/widgets/base.ts:320
First-mint hook: a platform descendant wires its lifecycle here. Never fired for a scope provided to init — that path runs inside the constructor chain.
Parameters
| Parameter | Type |
|---|---|
_scope | Scope |
Returns
void
Inherited from
_wireDartLifecycle()
protected_wireDartLifecycle():void
Defined in: js-api/src/widgets/base.ts:336
Dart-owned lifecycle: the platform kill disposes the scope, and disposing the scope kills the widget through the kill-walk.
Returns
void
Inherited from
_wireJsLifecycle()
protected_wireJsLifecycle():void
Defined in: js-api/src/widgets/base.ts:327
JS-owned lifecycle: disposing the scope detaches the widget, and vice versa.
Returns
void
Inherited from
_wireLifecycle()
protected_wireLifecycle():void
Defined in: js-api/src/widgets/base.ts:322
Returns
void
Inherited from
acceptsPath()
acceptsPath(
_urlPath):boolean
Defined in: js-api/src/views/view.ts:202
Checks if URL path is acceptable. Override in subclasses.
[_urlPath] is the path WITHOUT the query string: a view claims a URL by its path, and decides what the parameters mean in handlePath.
Parameters
| Parameter | Type |
|---|---|
_urlPath | string |
Returns
boolean
"true" if path is acceptable, "false" otherwise.
Inherited from
addViewer()
addViewer(
v,options?):Viewer
Defined in: js-api/src/views/view.ts:456
Adds a viewer of the specified type.
Parameters
| Parameter | Type |
|---|---|
v | string | Viewer<any> |
options? | any |
Returns
afterPersist()
protectedafterPersist():void
Defined in: js-api/src/views/view.ts:99
Gets called automatically when this view gets pinned
Returns
void
Inherited from
append()
append(
item):HTMLElement
Defined in: js-api/src/views/view.ts:207
Appends an item to this view. Use appendAll for appending multiple elements.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | any | - |
Returns
HTMLElement
Inherited from
appendAll()
appendAll(
items):HTMLElement
Defined in: js-api/src/views/view.ts:214
Appends multiple elements this view. Use append for appending a single element.
Parameters
| Parameter | Type | Description |
|---|---|---|
items | HTMLElement[] | - |
Returns
HTMLElement
Inherited from
apply()
apply(
properties):Widget
Defined in: js-api/src/widgets/base.ts:261
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | object | - |
Returns
Inherited from
barChart()
barChart(
options?):Viewer
Defined in: js-api/src/views/view.ts:503
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
bindProps()
bindProps():
BindProp[]
Defined in: js-api/src/u2core/component.ts:307
The signal-backed subset of the meta props — what a binding picker offers on a named node — plus, under propertyTier, every declared property. Allocates no signal.
Returns
BindProp[]
Inherited from
bindStep()
bindStep(
name):BindSource|Signal<unknown> |null
Defined in: js-api/src/u2core/component.ts:296
One binding step (DD5): a meta-declared prop's same-named Signal member — a named node is a
bind source, generated off componentMeta the way getProperties is — then, under
propertyTier, a cached signal over the declared property. '' answers the default
binding: the component's own value signal, where one exists.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
BindSource | Signal<unknown> | null
Inherited from
boxPlot()
boxPlot(
options?):Viewer
Defined in: js-api/src/views/view.ts:510
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
calendar()
calendar(
options?):Viewer
Defined in: js-api/src/views/view.ts:519
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
close()
close():
void
Defined in: js-api/src/views/view.ts:224
Closes this view.
Returns
void
Inherited from
closeAllViewers()
closeAllViewers():
void
Defined in: js-api/src/views/view.ts:472
Closes all viewers in this view, including minimized ones.
Returns
void
corrPlot()
corrPlot(
options?):Viewer
Defined in: js-api/src/views/view.ts:526
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
densityPlot()
densityPlot(
options?):Viewer
Defined in: js-api/src/views/view.ts:533
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
deriveName()
protectedderiveName(x):void
Defined in: js-api/src/u2core/component.ts:72
Sets the introspection/form key without claiming an automation id — the label-fallback path:
a caption is not a stable identity, so it never reaches data-u2-name.
Parameters
| Parameter | Type |
|---|---|
x | string | undefined |
Returns
void
Inherited from
detach()
detach():
void
Defined in: js-api/src/views/view.ts:663
Detaches and closes the view.
Returns
void
Overrides
detachViewers()
detachViewers():
void
Defined in: js-api/src/views/view.ts:668
Detaches all viewers.
Returns
void
dispose()
dispose():
void
Defined in: js-api/src/u2core/component.ts:147
On a never-engaged wrapper the getter mints here and _scopeMinted wires the
lifecycle (own(kill) + the platform cleanup for Dart-owned), so dispose still kills it;
re-entry from the kill cleanup is a no-op via the scope's disposed flag.
Returns
void
Inherited from
effect()
effect(
fn):this
Defined in: js-api/src/u2core/component.ts:134
Parameters
| Parameter | Type |
|---|---|
fn | () => void |
Returns
this
Inherited from
filters()
filters(
options?):Viewer
Defined in: js-api/src/views/view.ts:540
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
fireEvent()
protectedfireEvent(eventId,args?):void
Defined in: js-api/src/u2core/component.ts:435
Parameters
| Parameter | Type |
|---|---|
eventId | string |
args? | unknown |
Returns
void
Inherited from
focus()
focus():
void
Defined in: js-api/src/views/view.ts:475
Moves keyboard focus to the grid of this view.
Returns
void
form()
form(
options?):Viewer
Defined in: js-api/src/views/view.ts:547
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
getDartProperties()
getDartProperties():
any[]
Defined in: js-api/src/widgets/base.ts:289
Returns
any[]
Inherited from
getFiltersGroup()
getFiltersGroup(
options?):FilterGroup
Defined in: js-api/src/views/view.ts:443
Returns existing, or creates a new filter group.
Parameters
| Parameter | Type |
|---|---|
options? | { createDefaultFilters?: boolean; } |
options.createDefaultFilters? | boolean |
Returns
getFunctions()
getFunctions():
Func[]
Defined in: js-api/src/views/view.ts:308
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
getIcon()
getIcon():
HTMLElement|null
Defined in: js-api/src/views/view.ts:165
Returns
HTMLElement | null
View icon. Override in subclasses.
Inherited from
getInfo()
getInfo():
ViewLayout
Defined in: js-api/src/views/view.ts:350
Saves view as a ViewInfo. Only applicable to certain views, such as TableView.
Returns
Inherited from
getProperties()
getProperties():
Property[]
Defined in: js-api/src/views/view.ts:307
Returns all properties of this widget: the meta-generated ones plus addProperty's.
Returns
Property[]
Inherited from
getRibbonPanels()
getRibbonPanels():
HTMLElement[][]
Defined in: js-api/src/views/view.ts:160
Returns
HTMLElement[][]
Inherited from
getViewerColumns()
getViewerColumns():
Column<any,any>[]
Defined in: js-api/src/views/view.ts:469
Returns columns that are explicitly used as data columns in non-grid viewers (falls back to grid columns when no custom viewers are present).
Returns
Column<any, any>[]
getWidgetStatus()
getWidgetStatus():
IWidgetStatus
Defined in: js-api/src/widgets/base.ts:422
Returns the widget's runtime structure for automated testing and introspection.
Returns
Inherited from
handlePath()
handlePath(
_urlPath):void
Defined in: js-api/src/views/view.ts:195
Handles URL path. Override in subclasses.
[_urlPath] is the path WITHOUT the query string (see acceptsPath);
the router has already updated the address bar, so read the parameters from
window.location.search.
A handler may route elsewhere — set grok.shell.v to another view and the
router leaves it alone (it only falls back to this view when the handler
changed nothing).
Parameters
| Parameter | Type |
|---|---|
_urlPath | string |
Returns
void
Inherited from
heatMap()
heatMap(
options?):Viewer
Defined in: js-api/src/views/view.ts:554
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
histogram()
histogram(
options?):Viewer
Defined in: js-api/src/views/view.ts:496
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
lineChart()
lineChart(
options?):Viewer
Defined in: js-api/src/views/view.ts:561
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
link()
link(
name,source,twoWay):void
Defined in: js-api/src/u2core/component.ts:268
Keeps this component's name step and source equal, echo-suppressed by value; the reverse
direction only where twoWay. A component that took source as its own signal needs no link
and gets none; a read-only step cannot follow anything and gets none either.
Parameters
| Parameter | Type |
|---|---|
name | string |
source | Signal<unknown> |
twoWay | boolean |
Returns
void
Inherited from
loadLayout()
loadLayout(
layout,pickupColumnTags?):void
Defined in: js-api/src/views/view.ts:335
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
loadState()
loadState(
x,options?):void
Defined in: js-api/src/views/view.ts:685
Parameters
| Parameter | Type |
|---|---|
x | string |
options? | IViewStateApplicationOptions |
Returns
void
loadStateMap()
loadStateMap(
_stateMap):void
Defined in: js-api/src/views/view.ts:173
Loads view state map. Override in subclasses.
Parameters
| Parameter | Type |
|---|---|
_stateMap | object |
Returns
void
Inherited from
markup()
markup(
options?):Viewer
Defined in: js-api/src/views/view.ts:575
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
matrixPlot()
matrixPlot(
options?):Viewer
Defined in: js-api/src/views/view.ts:582
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
networkDiagram()
networkDiagram(
options?):Viewer
Defined in: js-api/src/views/view.ts:589
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
onEvent()
onEvent(
eventId?):Observable<any>
Defined in: js-api/src/widgets/base.ts:419
Observes events with the specified eventId. Override in subclasses to provide actual events.
Parameters
| Parameter | Type | Default value |
|---|---|---|
eventId | string | null | null |
Returns
Observable<any>
Inherited from
onFrameAttached()
onFrameAttached(
dataFrame):void
Defined in: js-api/src/widgets/base.ts:295
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
onPropertyChanged()
onPropertyChanged(
property):void
Defined in: js-api/src/widgets/base.ts:287
Gets called when viewer's property is changed.
Parameters
| Parameter | Type | Description |
|---|---|---|
property | Property | null | or null, if multiple properties were changed. |
Returns
void
Inherited from
own()
own(
dispose):this
Defined in: js-api/src/u2core/component.ts:139
Parameters
| Parameter | Type |
|---|---|
dispose | () => void |
Returns
this
Inherited from
pcPlot()
pcPlot(
options?):Viewer
Defined in: js-api/src/views/view.ts:596
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
pieChart()
pieChart(
options?):Viewer
Defined in: js-api/src/views/view.ts:603
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
pin()
pin():
void
Defined in: js-api/src/views/view.ts:184
Pins the view. Pinned views are not closed when a new view is opened.
Returns
void
Inherited from
propertyChanges()
protectedpropertyChanges():ObservableLike<PropertyChange>
Defined in: js-api/src/widgets/base.ts:366
What refreshes the property tier's cached signals from outside: null where nothing announces a change (one-way).
Returns
ObservableLike<PropertyChange>
Inherited from
registerFunction()
protectedregisterFunction(f):void
Defined in: js-api/src/u2core/component.ts:431
Parameters
| Parameter | Type |
|---|---|
f | FuncLike |
Returns
void
Inherited from
reloadData()
reloadData(
options?):Promise<void>
Defined in: js-api/src/views/view.ts:690
Re-runs the table creation script (for dynamic data), and executes post-processing if enrich is true.
Parameters
| Parameter | Type |
|---|---|
options? | { enrich?: boolean; } |
options.enrich? | boolean |
Returns
Promise<void>
resetLayout()
resetLayout():
void
Defined in: js-api/src/views/view.ts:658
Resets view layout, leaving only grid visible.
Returns
void
runInScope()
runInScope<
T>(fn):T
Defined in: js-api/src/u2core/component.ts:130
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
fn | () => T |
Returns
T
Inherited from
saveLayout()
saveLayout(
options?):ViewLayout
Defined in: js-api/src/views/view.ts:343
Saves view layout as a string. Only applicable to certain views, such as TableView. See also loadLayout
Parameters
| Parameter | Type |
|---|---|
options? | { saveWithData?: boolean; } |
options.saveWithData? | boolean |
Returns
Inherited from
saveState()
saveState():
string
Defined in: js-api/src/views/view.ts:681
Returns
string
saveStateMap()
saveStateMap():
object|null
Defined in: js-api/src/views/view.ts:170
Returns
object | null
Viewer state map. Override in subclasses.
Inherited from
scatterPlot()
scatterPlot(
options?):ScatterPlotViewer
Defined in: js-api/src/views/view.ts:610
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
scatterPlot3d()
scatterPlot3d(
options?):Viewer
Defined in: js-api/src/views/view.ts:617
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
setIcon()
setIcon(
icon):void
Defined in: js-api/src/views/view.ts:167
Parameters
| Parameter | Type |
|---|---|
icon | HTMLElement |
Returns
void
Inherited from
setRibbonPanels()
setRibbonPanels(
panels,clear?):void
Defined in: js-api/src/views/view.ts:156
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
shapeMap()
shapeMap(
options?):Viewer
Defined in: js-api/src/views/view.ts:568
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
sourceRowsChanged()
sourceRowsChanged():
void
Defined in: js-api/src/widgets/base.ts:293
Returns
void
Inherited from
statistics()
statistics(
options?):Viewer
Defined in: js-api/src/views/view.ts:624
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
sub()
sub(
subscription):void
Defined in: js-api/src/widgets/base.ts:254
Registers a subscription to an external event.
Parameters
| Parameter | Type | Description |
|---|---|---|
subscription | Subscription | - |
Returns
void
Inherited from
tileViewer()
tileViewer(
options?):Viewer
Defined in: js-api/src/views/view.ts:631
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
toDart()
toDart():
any
Defined in: js-api/src/widgets/base.ts:246
Returns
any
Inherited from
treeMap()
treeMap(
options?):Viewer
Defined in: js-api/src/views/view.ts:638
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
trellisPlot()
trellisPlot(
options?):Viewer
Defined in: js-api/src/views/view.ts:645
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
wordCloud()
wordCloud(
options?):Viewer
Defined in: js-api/src/views/view.ts:653
Adds a word cloud. Sample: https://public.datagrok.ai/js/samples/ui/viewers/types/word-cloud
Parameters
| Parameter | Type |
|---|---|
options? | any |
Returns
Deprecated
build()
staticbuild(builder):Control
Defined in: js-api/src/u2core/component.ts:529
Builds a control out of plain elements: builder runs with the new control's scope
ambient, so signal bindings and nested components inside it are owned by the result.
The ambient scope only spans the synchronous part of builder — components constructed after
an await inside it are adopted by nobody and must be disposed by hand, or constructed before
the first await.
Parameters
| Parameter | Type |
|---|---|
builder | () => HTMLElement | (string | HTMLElement | Control)[] |
Returns
Inherited from
create()
staticcreate(table,addToWorkspace?):TableView
Defined in: js-api/src/views/view.ts:426
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
TableView
Overrides
createByType()
staticcreateByType(viewType,options?):View
Defined in: js-api/src/views/view.ts:299
Creates one of the standard views based on the view type (such as 'functions')
Parameters
| Parameter | Type |
|---|---|
viewType | string |
options? | any |
Returns
Inherited from
find()
staticfind(root):Widget<any> |null
Defined in: js-api/src/widgets/base.ts:236
Finds existing widget from its visual root.
Parameters
| Parameter | Type |
|---|---|
root | Element |
Returns
Widget<any> | null
Inherited from
forElement()
staticforElement(el):Control|undefined
Defined in: js-api/src/u2core/component.ts:489
The nearest control owning el — the DOM → component door for tooling, automation and
inspectors (the u2 counterpart of the platform's Widget.find). Best-effort: the last
control constructed on (or assigned) a root wins it.
Parameters
| Parameter | Type |
|---|---|
el | Element | null |
Returns
Control | undefined
Inherited from
forObject()
staticforObject(x):View|null
Defined in: js-api/src/views/view.ts:277
Creates a view for the specified object, if it is registered, or null otherwise.
Parameters
| Parameter | Type |
|---|---|
x | any |
Returns
View | null
Inherited from
fromDart()
staticfromDart(dart):TableView|View
Defined in: js-api/src/views/view.ts:268
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
TableView | View
Inherited from
fromRoot()
staticfromRoot(root):View
Defined in: js-api/src/views/view.ts:282
Creates and returns a view with the specified element inside.
Parameters
| Parameter | Type |
|---|---|
root | HTMLElement |
Returns
Inherited from
fromViewAsync()
staticfromViewAsync(getViewAsync,ribbon?):any
Defined in: js-api/src/views/view.ts:303
Parameters
| Parameter | Type | Default value |
|---|---|---|
getViewAsync | () => Promise<View> | undefined |
ribbon | boolean | true |
Returns
any
Inherited from
getAll()
staticgetAll():Widget<any>[]
Defined in: js-api/src/widgets/base.ts:231
Returns all currently active widgets.
Returns
Widget<any>[]
Inherited from
init()
staticinit(self,scope?):void
Defined in: js-api/src/u2core/component.ts:89
Per-instance state, for a constructed component and for an adopted platform object alike.
Parameters
| Parameter | Type |
|---|---|
self | Component |
scope? | Scope |
Returns
void
Inherited from
is()
staticis(x):x is Control
Defined in: js-api/src/u2core/component.ts:498
Structural probe by methods only — never .scope: the accessor mints.
Parameters
| Parameter | Type |
|---|---|
x | unknown |
Returns
x is Control
Inherited from
registerCleanup()
staticregisterCleanup(element,cleanup):void
Defined in: js-api/src/widgets/base.ts:242
Registers a cleanup function to run when [element] is killed — i.e. when its host view or pane closes. Also marks the element so the kill-walk can find it.
Parameters
| Parameter | Type |
|---|---|
element | Element |
cleanup | Function |
Returns
void
Inherited from
sameValue()
staticsameValue(a,b):boolean
Defined in: js-api/src/u2core/component.ts:111
The equality the property tier and link suppress echoes by: Object.is, arrays
element-wise, plain objects key-wise (recursive), everything else by identity.
Parameters
| Parameter | Type |
|---|---|
a | unknown |
b | unknown |
Returns
boolean