DomainView
Defined in: js-api/src/domains-ui.ts:663
The platform's Domain View for one domain table — the /domains/<schema>/<table>
page, creatable programmatically and embeddable: card / brief / grid modes,
search, sort, paging, the server-backed filter panel, in-grid editing with
one-transaction save, and the per-table ObjectHandler's rendering and
commands. Show it with grok.shell.addView(v), or mount v.root anywhere.
const v = DG.DomainView.create({schema: 'grit', table: 'issue'});
grok.shell.addView(v);
v.showFilters();
Rows are capped at 1000 (a banner invites refining the filter), and
query reports that cap as its limit — running it reproduces exactly
what the view shows; raise or drop limit on the reported params to go past
the cap. The inherited CardView members that need a JS-defined data
source — meta, objectType, searchFields — do not apply here: the view
takes them from the domain registry, and meta throws to say so.
A view the USER opened by navigating to /domains/<schema>/<table> is a plain
DG.View in JS (route-opened views are, platform-wide) — wrap its handle to
get this surface: new DG.DomainView(grok.shell.v.dart).
Extends
Constructors
Constructor
new DomainView(
dart):DomainView
Defined in: js-api/src/domains-ui.ts:666
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
DomainView
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Overrides | 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/domains-ui.ts:664 |
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:241 |
ALL_VIEW_TYPES | readonly | string[] | undefined | - | - | CardView.ALL_VIEW_TYPES | js-api/src/views/view.ts:402 |
APPS | readonly | "apps" | 'apps' | - | - | CardView.APPS | js-api/src/views/view.ts:372 |
BROWSE | readonly | "browse" | 'browse' | - | - | CardView.BROWSE | js-api/src/views/view.ts:399 |
DATA_CONNECTIONS | readonly | "connections" | 'connections' | - | - | CardView.DATA_CONNECTIONS | js-api/src/views/view.ts:386 |
DATA_JOB_RUNS | readonly | "jobs" | 'jobs' | - | - | CardView.DATA_JOB_RUNS | js-api/src/views/view.ts:387 |
DATA_QUERY_RUNS | readonly | "queryruns" | 'queryruns' | - | - | CardView.DATA_QUERY_RUNS | js-api/src/views/view.ts:389 |
DATABASES | readonly | "databases" | 'databases' | - | - | CardView.DATABASES | js-api/src/views/view.ts:382 |
DOCKERS | readonly | "dockers" | 'dockers' | - | - | CardView.DOCKERS | js-api/src/views/view.ts:400 |
EMAILS | readonly | "emails" | 'emails' | - | - | CardView.EMAILS | js-api/src/views/view.ts:390 |
FILES | readonly | "files" | 'files' | - | - | CardView.FILES | js-api/src/views/view.ts:388 |
FORUM | readonly | "forum" | 'forum' | - | - | CardView.FORUM | js-api/src/views/view.ts:377 |
FUNCTIONS | readonly | "functions" | 'functions' | - | - | CardView.FUNCTIONS | js-api/src/views/view.ts:385 |
GROUPS | readonly | "groups" | 'groups' | - | - | CardView.GROUPS | js-api/src/views/view.ts:391 |
HELP | readonly | "help" | 'help' | - | - | CardView.HELP | js-api/src/views/view.ts:380 |
JS_EDITOR | readonly | "js" | 'js' | - | - | CardView.JS_EDITOR | js-api/src/views/view.ts:398 |
MODELS | readonly | "models" | 'models' | - | - | CardView.MODELS | js-api/src/views/view.ts:392 |
NOTEBOOKS | readonly | "notebooks" | 'notebooks' | - | - | CardView.NOTEBOOKS | js-api/src/views/view.ts:379 |
OPEN_TEXT | readonly | "text" | 'text' | - | - | CardView.OPEN_TEXT | js-api/src/views/view.ts:381 |
PACKAGE_REPOSITORIES | readonly | "repositories" | 'repositories' | - | - | CardView.PACKAGE_REPOSITORIES | js-api/src/views/view.ts:397 |
PACKAGES | readonly | "packages" | 'packages' | - | - | CardView.PACKAGES | js-api/src/views/view.ts:396 |
PROJECTS | readonly | "projects" | 'projects' | - | - | CardView.PROJECTS | js-api/src/views/view.ts:378 |
QUERIES | readonly | "queries" | 'queries' | - | - | CardView.QUERIES | js-api/src/views/view.ts:393 |
SCRIPT | readonly | "script" | 'script' | - | - | CardView.SCRIPT | js-api/src/views/view.ts:375 |
SCRIPTS | readonly | "scripts" | 'scripts' | - | - | CardView.SCRIPTS | js-api/src/views/view.ts:394 |
SETTINGS | readonly | "settings" | 'settings' | - | - | CardView.SETTINGS | js-api/src/views/view.ts:373 |
SKETCH | readonly | "sketch" | 'sketch' | - | - | CardView.SKETCH | js-api/src/views/view.ts:376 |
USERS | readonly | "users" | 'users' | - | - | CardView.USERS | js-api/src/views/view.ts:395 |
VIEW_LAYOUTS | readonly | "layouts" | 'layouts' | - | - | CardView.VIEW_LAYOUTS | js-api/src/views/view.ts:384 |
WEB_SERVICES | readonly | "webservices" | 'webservices' | - | - | CardView.WEB_SERVICES | js-api/src/views/view.ts:383 |
WELCOME | readonly | "welcome" | 'welcome' | - | - | CardView.WELCOME | js-api/src/views/view.ts:374 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: js-api/src/views/view.ts:252
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:257
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:138
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:139
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:156
Whether the view is currently closing.
Returns
boolean
Set Signature
set closing(
c):void
Defined in: js-api/src/views/view.ts:157
Parameters
| Parameter | Type |
|---|---|
c | boolean |
Returns
void
Inherited from
description
Get Signature
get description():
string
Defined in: js-api/src/views/view.ts:325
View description. Used in UI and AI.
Returns
string
Set Signature
set description(
s):void
Defined in: js-api/src/views/view.ts:326
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void
Inherited from
entity
Get Signature
get entity():
object|null
Defined in: js-api/src/views/view.ts:133
Returns
object | null
Set Signature
set entity(
_e):void
Defined in: js-api/src/views/view.ts:134
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