FilesView
Defined in: js-api/src/views/files_view.ts:9
File browser view. Contains the file tree, search panel and preview components.
Extends
Constructors
Constructor
new FilesView(
dart):FilesView
Defined in: js-api/src/views/card_view.ts:23
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
FilesView
Inherited from
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | CardView._functions | js-api/src/widgets/base.ts:218 |
_name | protected | string | 'New View' | - | CardView._name | js-api/src/views/view.ts:119 |
_properties | protected | Property[] | [] | - | CardView._properties | js-api/src/widgets/base.ts:217 |
_root | protected | HTMLElement | undefined | - | CardView._root | js-api/src/u2core/component.ts:666 |
_u2 | readonly | ComponentState | undefined | - | CardView._u2 | js-api/src/u2core/component.ts:119 |
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:114 |
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:215 |
isDetached | public | boolean | false | Whether detach has been called. | CardView.isDetached | js-api/src/widgets/base.ts:225 |
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:220 |
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:118 |
subs | public | Subscription[] | undefined | Subscriptions cancelled when the widget is detached. | CardView.subs | js-api/src/views/view.ts:61 |
temp | public | any | undefined | Contains auxiliary information | CardView.temp | js-api/src/views/view.ts:271 |
ALL_VIEW_TYPES | readonly | string[] | undefined | - | CardView.ALL_VIEW_TYPES | js-api/src/views/view.ts:432 |
APPS | readonly | "apps" | 'apps' | - | CardView.APPS | js-api/src/views/view.ts:402 |
BROWSE | readonly | "browse" | 'browse' | - | CardView.BROWSE | js-api/src/views/view.ts:429 |
DATA_CONNECTIONS | readonly | "connections" | 'connections' | - | CardView.DATA_CONNECTIONS | js-api/src/views/view.ts:416 |
DATA_JOB_RUNS | readonly | "jobs" | 'jobs' | - | CardView.DATA_JOB_RUNS | js-api/src/views/view.ts:417 |
DATA_QUERY_RUNS | readonly | "queryruns" | 'queryruns' | - | CardView.DATA_QUERY_RUNS | js-api/src/views/view.ts:419 |
DATABASES | readonly | "databases" | 'databases' | - | CardView.DATABASES | js-api/src/views/view.ts:412 |
DOCKERS | readonly | "dockers" | 'dockers' | - | CardView.DOCKERS | js-api/src/views/view.ts:430 |
EMAILS | readonly | "emails" | 'emails' | - | CardView.EMAILS | js-api/src/views/view.ts:420 |
FILES | readonly | "files" | 'files' | - | CardView.FILES | js-api/src/views/view.ts:418 |
FORUM | readonly | "forum" | 'forum' | - | CardView.FORUM | js-api/src/views/view.ts:407 |
FUNCTIONS | readonly | "functions" | 'functions' | - | CardView.FUNCTIONS | js-api/src/views/view.ts:415 |
GROUPS | readonly | "groups" | 'groups' | - | CardView.GROUPS | js-api/src/views/view.ts:421 |
HELP | readonly | "help" | 'help' | - | CardView.HELP | js-api/src/views/view.ts:410 |
isRoot | static | boolean | false | A root has no owner by design (a dialog): built with none, it is not reported as owner-missing. | CardView.isRoot | js-api/src/u2core/component.ts:81 |
JS_EDITOR | readonly | "js" | 'js' | - | CardView.JS_EDITOR | js-api/src/views/view.ts:428 |
MODELS | readonly | "models" | 'models' | - | CardView.MODELS | js-api/src/views/view.ts:422 |
NOTEBOOKS | readonly | "notebooks" | 'notebooks' | - | CardView.NOTEBOOKS | js-api/src/views/view.ts:409 |
OPEN_TEXT | readonly | "text" | 'text' | - | CardView.OPEN_TEXT | js-api/src/views/view.ts:411 |
PACKAGE_REPOSITORIES | readonly | "repositories" | 'repositories' | - | CardView.PACKAGE_REPOSITORIES | js-api/src/views/view.ts:427 |
PACKAGES | readonly | "Plugins" | 'Plugins' | - | CardView.PACKAGES | js-api/src/views/view.ts:426 |
PROJECTS | readonly | "projects" | 'projects' | - | CardView.PROJECTS | js-api/src/views/view.ts:408 |
QUERIES | readonly | "queries" | 'queries' | - | CardView.QUERIES | js-api/src/views/view.ts:423 |
SCRIPT | readonly | "script" | 'script' | - | CardView.SCRIPT | js-api/src/views/view.ts:405 |
SCRIPTS | readonly | "scripts" | 'scripts' | - | CardView.SCRIPTS | js-api/src/views/view.ts:424 |
SETTINGS | readonly | "settings" | 'settings' | - | CardView.SETTINGS | js-api/src/views/view.ts:403 |
SKETCH | readonly | "sketch" | 'sketch' | - | CardView.SKETCH | js-api/src/views/view.ts:406 |
USERS | readonly | "users" | 'users' | - | CardView.USERS | js-api/src/views/view.ts:425 |
VIEW_LAYOUTS | readonly | "layouts" | 'layouts' | - | CardView.VIEW_LAYOUTS | js-api/src/views/view.ts:414 |
WEB_SERVICES | readonly | "webservices" | 'webservices' | - | CardView.WEB_SERVICES | js-api/src/views/view.ts:413 |
WELCOME | readonly | "welcome" | 'welcome' | - | CardView.WELCOME | js-api/src/views/view.ts:404 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: js-api/src/views/view.ts:282
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:287
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:278
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:152
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:153
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
box
Get Signature
get box():
boolean
Defined in: js-api/src/views/view.ts:86
Returns
boolean
Set Signature
set box(
b):void
Defined in: js-api/src/views/view.ts:87
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:313
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:186
Whether the view is currently closing.
Returns
boolean
Set Signature
set closing(
c):void
Defined in: js-api/src/views/view.ts:187
Parameters
| Parameter | Type |
|---|---|
c | boolean |
Returns
void
Inherited from
description
Get Signature
get description():
string
Defined in: js-api/src/views/view.ts:355
View description. Used in UI and AI.
Returns
string
Set Signature
set description(
s):void
Defined in: js-api/src/views/view.ts:356
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
entity
Get Signature
get entity():
object|null
Defined in: js-api/src/views/view.ts:147
Returns
object | null
Set Signature
set entity(
_e):void
Defined in: js-api/src/views/view.ts:148
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:359
Returns
string | null
View help URL.
Set Signature
set helpUrl(
url):void
Defined in: js-api/src/views/view.ts:360
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:350
Returns
string
Inherited from
innerView
Set Signature
set innerView(
v):void
Defined in: js-api/src/views/view.ts:142
The view this one is currently surfacing, if it hosts another (such as a MultiView
tab). grok.shell.t resolves through it.
Parameters
| Parameter | Type |
|---|---|
v | ViewBase | null |
Returns
void
Inherited from
isPinned
Get Signature
get isPinned():
boolean
Defined in: js-api/src/views/view.ts:216
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:217
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
Inherited from
jsView
Get Signature
get jsView():
ViewBase|null
Defined in: js-api/src/views/view.ts:296
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:384
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:389
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
parent
Get Signature
get parent():
Widget<any> |null
Defined in: js-api/src/widgets/base.ts:310
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:131
Returns
FuncCall | undefined
Set Signature
set parentCall(
s):void
Defined in: js-api/src/views/view.ts:132
Parameters
| Parameter | Type |
|---|---|
s | FuncCall | undefined |
Returns
void
Inherited from
parentView
Get Signature
get parentView():
ViewBase
Defined in: js-api/src/views/view.ts:137
The view this one was opened from. While it is open, the ribbon shows it before this view's name as a link that makes it current (a TableView only with TableView.showParentCrumb), and closing this view while it is current makes the parent current.
Returns
Set Signature
set parentView(
s):void
Defined in: js-api/src/views/view.ts:138
Parameters
| Parameter | Type |
|---|---|
s | ViewBase |
Returns
void
Inherited from
path
Get Signature
get path():
string
Defined in: js-api/src/views/view.ts:212
View URI, relative to the view root
Returns
string
Set Signature
set path(
s):void
Defined in: js-api/src/views/view.ts:213
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
propertyTarget
Get Signature
get propertyTarget():
unknown
Defined in: js-api/src/u2core/component.ts:435
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:282
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:172
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:173
Parameters
| Parameter | Type |
|---|---|
menu | Menu |
Returns
void
Inherited from
root
Get Signature
get root():
HTMLElement
Defined in: js-api/src/views/view.ts:342
Returns the content (visual root) of this view.
Returns
HTMLElement
Inherited from
rootId
Get Signature
get rootId():
string
Defined in: js-api/src/u2core/component.ts:704
Stable element id, minted (u2-<n>) on first ask unless the root has one: the anchor of
for, aria-* and data-u2-owner-id references.
Returns
string
Inherited from
saveToProject
Get Signature
get saveToProject():
boolean
Defined in: js-api/src/views/view.ts:159
Whether the view is saved with the project. Only views that can be reopened are saved: their type restores them from saveStateMap, or they belong to an app. A new view is listed in the Save project dialog but left out until the user includes it, unless saveToProjectByDefault is true; a view of a saved project stays in it.
Returns
boolean
Set Signature
set saveToProject(
x):void
Defined in: js-api/src/views/view.ts:160
Parameters
| Parameter | Type |
|---|---|
x | boolean |
Returns
void
Inherited from
saveToProjectByDefault
Get Signature
get saveToProjectByDefault():
boolean
Defined in: js-api/src/views/view.ts:163
Override to return true for a view type whose new views go into the project without the user including them.
Returns
boolean
Inherited from
CardView.saveToProjectByDefault
scope
Get Signature
get scope():
Scope
Defined in: js-api/src/u2core/component.ts:86
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. Lazy: counted and tracked only
once it owns something, so a static control costs nothing.
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 |