SpaceView
Defined in: js-api/src/views/space_view.ts:15
Hierarchical view of a Datagrok Space — the same widget the Browse tree
opens when you click a Space (a Project where isSpace == true).
Includes the search box, the "+" ribbon button to add a child space, and
the card grid of children (subspaces, files, entities).
Extends
Constructors
Constructor
new SpaceView(
dart):SpaceView
Defined in: js-api/src/views/card_view.ts:23
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
SpaceView
Inherited from
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | CardView._functions | js-api/src/widgets/base.ts:207 |
_name | protected | string | 'New View' | - | CardView._name | js-api/src/views/view.ts:108 |
_properties | protected | Property[] | [] | - | CardView._properties | js-api/src/widgets/base.ts:206 |
_root | protected | HTMLElement | undefined | - | CardView._root | js-api/src/u2core/component.ts:445 |
_u2 | readonly | ComponentState | undefined | - | CardView._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. | CardView.componentMeta | js-api/src/u2core/component.ts:77 |
dart | public | any | undefined | - | CardView.dart | js-api/src/views/card_view.ts:21 |
factory | public | Func | null | null | Constructor function. No parameters, returns [Widget]. | CardView.factory | js-api/src/widgets/base.ts:204 |
isDetached | public | boolean | false | Whether detach has been called. | CardView.isDetached | js-api/src/widgets/base.ts:214 |
props | public | any | undefined | Property bag over this widget's properties; read and write them by name. | CardView.props | js-api/src/widgets/base.ts:209 |
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. | CardView.specProps | js-api/src/u2core/component.ts:81 |
subs | public | Subscription[] | undefined | Subscriptions cancelled when the widget is detached. | CardView.subs | js-api/src/views/view.ts:50 |
temp | public | any | undefined | Contains auxiliary information | CardView.temp | js-api/src/views/view.ts:237 |
ALL_VIEW_TYPES | readonly | string[] | undefined | - | CardView.ALL_VIEW_TYPES | js-api/src/views/view.ts:398 |
APPS | readonly | "apps" | 'apps' | - | CardView.APPS | js-api/src/views/view.ts:368 |
BROWSE | readonly | "browse" | 'browse' | - | CardView.BROWSE | js-api/src/views/view.ts:395 |
DATA_CONNECTIONS | readonly | "connections" | 'connections' | - | CardView.DATA_CONNECTIONS | js-api/src/views/view.ts:382 |
DATA_JOB_RUNS | readonly | "jobs" | 'jobs' | - | CardView.DATA_JOB_RUNS | js-api/src/views/view.ts:383 |
DATA_QUERY_RUNS | readonly | "queryruns" | 'queryruns' | - | CardView.DATA_QUERY_RUNS | js-api/src/views/view.ts:385 |
DATABASES | readonly | "databases" | 'databases' | - | CardView.DATABASES | js-api/src/views/view.ts:378 |
DOCKERS | readonly | "dockers" | 'dockers' | - | CardView.DOCKERS | js-api/src/views/view.ts:396 |
EMAILS | readonly | "emails" | 'emails' | - | CardView.EMAILS | js-api/src/views/view.ts:386 |
FILES | readonly | "files" | 'files' | - | CardView.FILES | js-api/src/views/view.ts:384 |
FORUM | readonly | "forum" | 'forum' | - | CardView.FORUM | js-api/src/views/view.ts:373 |
FUNCTIONS | readonly | "functions" | 'functions' | - | CardView.FUNCTIONS | js-api/src/views/view.ts:381 |
GROUPS | readonly | "groups" | 'groups' | - | CardView.GROUPS | js-api/src/views/view.ts:387 |
HELP | readonly | "help" | 'help' | - | CardView.HELP | js-api/src/views/view.ts:376 |
JS_EDITOR | readonly | "js" | 'js' | - | CardView.JS_EDITOR | js-api/src/views/view.ts:394 |
MODELS | readonly | "models" | 'models' | - | CardView.MODELS | js-api/src/views/view.ts:388 |
NOTEBOOKS | readonly | "notebooks" | 'notebooks' | - | CardView.NOTEBOOKS | js-api/src/views/view.ts:375 |
OPEN_TEXT | readonly | "text" | 'text' | - | CardView.OPEN_TEXT | js-api/src/views/view.ts:377 |
PACKAGE_REPOSITORIES | readonly | "repositories" | 'repositories' | - | CardView.PACKAGE_REPOSITORIES | js-api/src/views/view.ts:393 |
PACKAGES | readonly | "packages" | 'packages' | - | CardView.PACKAGES | js-api/src/views/view.ts:392 |
PROJECTS | readonly | "projects" | 'projects' | - | CardView.PROJECTS | js-api/src/views/view.ts:374 |
QUERIES | readonly | "queries" | 'queries' | - | CardView.QUERIES | js-api/src/views/view.ts:389 |
SCRIPT | readonly | "script" | 'script' | - | CardView.SCRIPT | js-api/src/views/view.ts:371 |
SCRIPTS | readonly | "scripts" | 'scripts' | - | CardView.SCRIPTS | js-api/src/views/view.ts:390 |
SETTINGS | readonly | "settings" | 'settings' | - | CardView.SETTINGS | js-api/src/views/view.ts:369 |
SKETCH | readonly | "sketch" | 'sketch' | - | CardView.SKETCH | js-api/src/views/view.ts:372 |
USERS | readonly | "users" | 'users' | - | CardView.USERS | js-api/src/views/view.ts:391 |
VIEW_LAYOUTS | readonly | "layouts" | 'layouts' | - | CardView.VIEW_LAYOUTS | js-api/src/views/view.ts:380 |
WEB_SERVICES | readonly | "webservices" | 'webservices' | - | CardView.WEB_SERVICES | js-api/src/views/view.ts:379 |
WELCOME | readonly | "welcome" | 'welcome' | - | CardView.WELCOME | js-api/src/views/view.ts:370 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: js-api/src/views/view.ts:248
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:253
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:266
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:134
URL prefix of the view (an app's root, such as /apps/Chem); path is this prefix plus the
view's own relative path.
Returns
string
Set Signature
set basePath(
s):void
Defined in: js-api/src/views/view.ts:135
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
box
Get Signature
get box():
boolean
Defined in: js-api/src/views/view.ts:75
Returns
boolean
Set Signature
set box(
b):void
Defined in: js-api/src/views/view.ts:76
Parameters
| Parameter | Type |
|---|---|
b | boolean |
Returns
void
Inherited from
categoryFilters
Get Signature
get categoryFilters():
object
Defined in: js-api/src/views/card_view.ts:54
Category filter properties list
Returns
object
Set Signature
set categoryFilters(
ff):void
Defined in: js-api/src/views/card_view.ts:55
Parameters
| Parameter | Type |
|---|---|
ff | {[property: string]: string; } |
Returns
void
Inherited from
children
Get Signature
get children():
Widget<any>[]
Defined in: js-api/src/widgets/base.ts:301
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:152
Whether the view is currently closing.
Returns
boolean
Set Signature
set closing(
c):void
Defined in: js-api/src/views/view.ts:153
Parameters
| Parameter | Type |
|---|---|
c | boolean |
Returns
void
Inherited from
description
Get Signature
get description():
string
Defined in: js-api/src/views/view.ts:321
View description. Used in UI and AI.
Returns
string
Set Signature
set description(
s):void
Defined in: js-api/src/views/view.ts:322
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
entity
Get Signature
get entity():
object|null
Defined in: js-api/src/views/view.ts:129
Returns
object | null
Set Signature
set entity(
_e):void
Defined in: js-api/src/views/view.ts:130
Parameters
| Parameter | Type |
|---|---|
_e | object | null |
Returns
void
Inherited from
filters
Get Signature
get filters():
object
Defined in: js-api/src/views/card_view.ts:58
Text filter properties list
Returns
object
Set Signature
set filters(
ff):void
Defined in: js-api/src/views/card_view.ts:59
Parameters
| Parameter | Type |
|---|---|
ff | {[property: string]: string; } |
Returns
void
Inherited from
helpUrl
Get Signature
get helpUrl():
string|null
Defined in: js-api/src/views/view.ts:325
Returns
string | null
View help URL.
Set Signature
set helpUrl(
url):void
Defined in: js-api/src/views/view.ts:326
Parameters
| Parameter | Type |
|---|---|
url | string | null |
Returns
void
View help URL.
Inherited from
hierarchy
Get Signature
get hierarchy():
string[]
Defined in: js-api/src/views/card_view.ts:62
Grouping properties list
Returns
string[]
Set Signature
set hierarchy(
s):void
Defined in: js-api/src/views/card_view.ts:63
Parameters
| Parameter | Type |
|---|---|
s | string[] |
Returns
void
Inherited from
hierarchyProperties
Get Signature
get hierarchyProperties():
object
Defined in: js-api/src/views/card_view.ts:66
All possible grouping properties list
Returns
object
Set Signature
set hierarchyProperties(
s):void
Defined in: js-api/src/views/card_view.ts:67
Parameters
| Parameter | Type |
|---|---|
s | {[property: string]: string; } |
Returns
void
Inherited from
id
Get Signature
get id():
string
Defined in: js-api/src/views/view.ts:316
Returns
string
Inherited from
isPinned
Get Signature
get isPinned():
boolean
Defined in: js-api/src/views/view.ts:182
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:183
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
Inherited from
jsView
Get Signature
get jsView():
ViewBase|null
Defined in: js-api/src/views/view.ts:262
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
meta
Get Signature
get meta():
ObjectHandler
Defined in: js-api/src/views/card_view.ts:38
Object handler (instructions how to render, drag-and-drop, etc)
Returns
Set Signature
set meta(
s):void
Defined in: js-api/src/views/card_view.ts:39
Parameters
| Parameter | Type |
|---|---|
s | ObjectHandler |
Returns
void
Inherited from
name
Get Signature
get name():
string
Defined in: js-api/src/views/view.ts:350
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:355
A named control carries its name in the DOM: data-u2-name is the stable automation id
selectors, tutorials and agents address the control by — the same attribute the spec renderer
stamps on named nodes, so hand-built and spec-built UI share one selector vocabulary.
Derived names (an input's label fallback) never stamp — see Component.deriveName.
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
objectType
Get Signature
get objectType():
string
Defined in: js-api/src/views/card_view.ts:42
Semantic type of the items.
Returns
string
Set Signature
set objectType(
s):void
Defined in: js-api/src/views/card_view.ts:43
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
onCurrentObjectChanged
Get Signature
get onCurrentObjectChanged():
Observable<Entity>
Defined in: js-api/src/views/space_view.ts:31
Fires when the user selects a different item in the space's card grid.
Returns
Observable<Entity>
parent
Get Signature
get parent():
Widget<any> |null
Defined in: js-api/src/widgets/base.ts:298
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:120
Returns
FuncCall | undefined
Set Signature
set parentCall(
s):void
Defined in: js-api/src/views/view.ts:121
Parameters
| Parameter | Type |
|---|---|
s | FuncCall | undefined |
Returns
void
Inherited from
parentView
Get Signature
get parentView():
ViewBase
Defined in: js-api/src/views/view.ts:123
Returns
Set Signature
set parentView(
s):void
Defined in: js-api/src/views/view.ts:124
Parameters
| Parameter | Type |
|---|---|
s | ViewBase |
Returns
void
Inherited from
path
Get Signature
get path():
string
Defined in: js-api/src/views/view.ts:178
View URI, relative to the view root
Returns
string
Set Signature
set path(
s):void
Defined in: js-api/src/views/view.ts:179
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
permanentFilter
Get Signature
get permanentFilter():
string
Defined in: js-api/src/views/card_view.ts:50
Programmatically defined invisible filter expression.
Returns
string
Set Signature
set permanentFilter(
s):void
Defined in: js-api/src/views/card_view.ts:51
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
project
Get Signature
get project():
Project
Defined in: js-api/src/views/space_view.ts:22
The space (Project) being shown.
Returns
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:270
Every property getProperties declares is a bind step, read and written on propertyTarget.
Returns
boolean
Inherited from
renderMode
Get Signature
get renderMode():
RENDER_MODE
Defined in: js-api/src/views/card_view.ts:74
Render mode
Returns
Set Signature
set renderMode(
s):void
Defined in: js-api/src/views/card_view.ts:75
Parameters
| Parameter | Type |
|---|---|
s | RENDER_MODE |
Returns
void
Inherited from
ribbonMenu
Get Signature
get ribbonMenu():
Menu
Defined in: js-api/src/views/view.ts:144
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:145
Parameters
| Parameter | Type |
|---|---|
menu | Menu |
Returns
void
Inherited from
root
Get Signature
get root():
HTMLElement
Defined in: js-api/src/views/view.ts:308
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
searchFields
Get Signature
get searchFields():
string[]
Defined in: js-api/src/views/card_view.ts:45
Returns
string[]
Set Signature
set searchFields(
s):void
Defined in: js-api/src/views/card_view.ts:46
Parameters
| Parameter | Type |
|---|---|
s | string[] |
Returns
void
Inherited from
searchValue
Get Signature
get searchValue():
string
Defined in: js-api/src/views/card_view.ts:34
User-specified filter expression.
Returns
string
Set Signature
set searchValue(
s):void
Defined in: js-api/src/views/card_view.ts:35
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
showItemPreview
Get Signature
get showItemPreview():
boolean
Defined in: js-api/src/views/space_view.ts:27
Whether the in-view preview dock is shown when an item is selected.
Set to false when you want to render the selected item's preview
yourself by subscribing to onCurrentObjectChanged.
Returns
boolean
Set Signature
set showItemPreview(
s):void
Defined in: js-api/src/views/space_view.ts:28
Parameters
| Parameter | Type |
|---|---|
s | boolean |
Returns
void
showTree
Get Signature
get showTree():
boolean
Defined in: js-api/src/views/card_view.ts:70
Grouping mode on
Returns
boolean
Set Signature
set showTree(
s):void
Defined in: js-api/src/views/card_view.ts:71
Parameters
| Parameter | Type |
|---|---|
s | boolean |
Returns
void
Inherited from
statusBarPanels
Get Signature
get statusBarPanels():
HTMLDivElement[]
Defined in: js-api/src/views/view.ts:148
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:149
Parameters
| Parameter | Type |
|---|---|
panels | HTMLDivElement[] |
Returns
void
Inherited from
toolbox
Get Signature
get toolbox():
HTMLElement
Defined in: js-api/src/views/view.ts:139
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:140
Parameters
| Parameter | Type |
|---|---|
x | HTMLElement |
Returns
void
Inherited from
type
Get Signature
get type():
string
Defined in: js-api/src/views/view.ts:312
View type
Returns
string
Inherited from
Methods
_notifyPropertyChange()
protected_notifyPropertyChange(p):void
Defined in: js-api/src/widgets/base.ts:348
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
CardView._notifyPropertyChange
_onAdded()
_onAdded():
void
Defined in: js-api/src/views/view.ts:363
Returns
void
Inherited from
_ownPropertyChanges()
protected_ownPropertyChanges():ObservableLike<PropertyChange>
Defined in: js-api/src/widgets/base.ts:353
Returns
ObservableLike<PropertyChange>
Inherited from
_scopeMinted()
protected_scopeMinted(_scope):void
Defined in: js-api/src/widgets/base.ts:317
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:333
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:324
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:319
Returns
void
Inherited from
acceptsPath()
acceptsPath(
_urlPath):boolean
Defined in: js-api/src/views/view.ts:203
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
addProperty()
addProperty(
propertyName,propertyType,defaultValue?,options?):any
Defined in: js-api/src/widgets/base.ts:376
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" | "bool" | "int" | "double" | "byte_array" | "datetime" | "qnum" | "dataframe" | "numerical" | "categorical" | "num" | "string_list" | "dataframe_list" | "cell" | "column" | "column_list" | "graphics" | "blob" | "tablerowfiltercall" | "colfiltercall" | "bitset" | "dynamic" | "viewer" | "list" | "semantic_value" | "func" | "funccall" | "property" | "GridCellRenderArgs" | "element" | "view" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook" | undefined | - |
defaultValue | any | null | - |
options | object & IProperty | null | null | - |
Returns
any
See
Registered property gets added to properties. Returns default value, thus allowing to combine registering a property with the initialization
options.get/options.set override how the property reads/writes (instead of the default
fieldName field access); the change notification (onPropertyChanged) always fires
on write, and a {get}-only options yields a custom read with the default fieldName write.
Inherited from
addStatusProvider()
addStatusProvider(
name,provider):void
Defined in: js-api/src/widgets/base.ts:437
Adds live parts, hit areas and readings to this widget's status. Providers run in registration
order on every read; an existing name is replaced in place, and later providers override earlier
entries. Coordinates use the widget's own hit-area system. Detaching the widget removes all
providers. A subclass that overrides getWidgetStatus composes with super.getWidgetStatus().
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Stable name of the component contributing the status. |
provider | StatusProvider | Computes the contribution each time the status is requested. |
Returns
void
Example
widget.addStatusProvider('selection', () => ({values: {'selected rows': table.selection.trueCount}}));
console.log(widget.getWidgetStatus().values?.['selected rows']);
widget.removeStatusProvider('selection');
see samples/grid/custom-renderer-status
Inherited from
afterPersist()
protectedafterPersist():void
Defined in: js-api/src/views/view.ts:101
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 |
|---|---|
item | any |
Returns
HTMLElement
Inherited from
appendAll()
appendAll(
items):HTMLElement
Defined in: js-api/src/views/view.ts:213
Appends multiple elements this view. Use append for appending a single element.
Parameters
| Parameter | Type |
|---|---|
items | HTMLElement[] |
Returns
HTMLElement
Inherited from
apply()
apply(
properties):Widget
Defined in: js-api/src/widgets/base.ts:255
Parameters
| Parameter | Type |
|---|---|
properties | object |
Returns
Inherited from
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
close()
close():
void
Defined in: js-api/src/views/view.ts:223
Closes this view.
Returns
void
Inherited from
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:218
Detaches this view.
Returns
void
Inherited from
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
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
getDartProperties()
getDartProperties():
any[]
Defined in: js-api/src/widgets/base.ts:284
Dart handles of the properties that have one.
Returns
any[]
Inherited from
getFunctions()
getFunctions():
Func[]
Defined in: js-api/src/views/view.ts:305
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:167
Returns
HTMLElement | null
View icon. Override in subclasses.
Inherited from
getInfo()
getInfo():
ViewLayout
Defined in: js-api/src/views/view.ts:345
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:304
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:162
Returns
HTMLElement[][]
Inherited from
getWidgetStatus()
getWidgetStatus():
IWidgetStatus
Defined in: js-api/src/widgets/base.ts:413
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:197
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
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:332
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
loadStateMap()
loadStateMap(
_stateMap):void
Defined in: js-api/src/views/view.ts:175
Loads view state map. Override in subclasses.
Parameters
| Parameter | Type |
|---|---|
_stateMap | object |
Returns
void
Inherited from
onEvent()
onEvent(
eventId?):Observable<any>
Defined in: js-api/src/widgets/base.ts:410
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:292
Called when a DataFrame is attached; override to bind data.
Parameters
| Parameter | Type |
|---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
onPropertyChanged()
onPropertyChanged(
property):void
Defined in: js-api/src/widgets/base.ts:281
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
pin()
pin():
void
Defined in: js-api/src/views/view.ts:186
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:363
What refreshes the property tier's cached signals from outside: null where nothing announces a change (one-way).
Returns
ObservableLike<PropertyChange>
Inherited from
refresh()
refresh():
void
Defined in: js-api/src/views/card_view.ts:77
Returns
void
Inherited from
registerFunction()
protectedregisterFunction(f):void
Defined in: js-api/src/u2core/component.ts:431
Parameters
| Parameter | Type |
|---|---|
f | FuncLike |
Returns
void
Inherited from
removeStatusProvider()
removeStatusProvider(
name):void
Defined in: js-api/src/widgets/base.ts:446
Removes the status contribution registered under name; an absent name is a no-op.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The name passed to addStatusProvider. |
Returns
void
Example
widget.removeStatusProvider('selection');
see samples/grid/custom-renderer-status
Inherited from
repaint()
repaint():
void
Defined in: js-api/src/views/card_view.ts:78
Returns
void
Inherited from
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:339
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
saveStateMap()
saveStateMap():
object|null
Defined in: js-api/src/views/view.ts:172
Returns
object | null
Viewer state map. Override in subclasses.
Inherited from
setIcon()
setIcon(
icon):void
Defined in: js-api/src/views/view.ts:169
Parameters
| Parameter | Type |
|---|---|
icon | HTMLElement |
Returns
void
Inherited from
setRibbonPanels()
setRibbonPanels(
panels,clear?):void
Defined in: js-api/src/views/view.ts:158
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
sourceRowsChanged()
sourceRowsChanged():
void
Defined in: js-api/src/widgets/base.ts:289
Called when the rows the widget shows change; override to refresh.
Returns
void
Inherited from
sub()
sub(
subscription):void
Defined in: js-api/src/widgets/base.ts:250
Registers a subscription to an external event.
Parameters
| Parameter | Type |
|---|---|
subscription | Subscription |
Returns
void
Inherited from
toDart()
toDart():
any
Defined in: js-api/src/widgets/base.ts:243
The Dart handle of this widget, created on first use.
Returns
any
Inherited from
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(options?):CardView
Defined in: js-api/src/views/card_view.ts:28
Creates a new CardView object with the specified options.
Parameters
| Parameter | Type |
|---|---|
options? | any |
Returns
Inherited from
createByType()
staticcreateByType(viewType,options?):View
Defined in: js-api/src/views/view.ts:296
Creates one of the standard views based on the view type (such as 'functions')
Parameters
| Parameter | Type |
|---|---|
viewType | string | string & object |
options? | any |