Grid
Defined in: js-api/src/grid.ts:941
Base class for controls that have a visual root and a set of properties.
Extends
Constructors
Constructor
new Grid(
dart):Grid
Defined in: js-api/src/grid.ts:953
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Grid
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | Viewer._functions | js-api/src/widgets/base.ts:218 |
_properties | protected | Property[] | [] | - | Viewer._properties | js-api/src/widgets/base.ts:217 |
_root | protected | HTMLElement | undefined | - | Viewer._root | js-api/src/u2core/component.ts:666 |
_u2 | readonly | ComponentState | undefined | - | Viewer._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. | Viewer.componentMeta | js-api/src/u2core/component.ts:114 |
dart | public | any | undefined | - | Viewer.dart | js-api/src/widgets/base.ts:223 |
factory | public | Func | null | null | Constructor function. No parameters, returns [Widget]. | Viewer.factory | js-api/src/widgets/base.ts:215 |
isDetached | public | boolean | false | Whether detach has been called. | Viewer.isDetached | js-api/src/widgets/base.ts:225 |
props | public | IGridSettings & ObjectPropertyBag | undefined | Property bag over this widget's properties; read and write them by name. | Viewer.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. | Viewer.specProps | js-api/src/u2core/component.ts:118 |
subs | public | Subscription[] | undefined | Subscriptions cancelled when the widget is detached. | Viewer.subs | js-api/src/widgets/base.ts:222 |
tags | public | any | undefined | Viewer tags: a string map persisted with the layout. | Viewer.tags | js-api/src/viewer.ts:123 |
temp | public | any | undefined | Contains auxiliary information | Viewer.temp | js-api/src/widgets/base.ts:212 |
CONFLICT_CELL_COLOR | readonly | 4294959282 | 0xFFFFE0B2 | - | - | js-api/src/grid.ts:948 |
CORE_VIEWER_TYPES | static | string[] | undefined | Viewer types that ship with the platform and are available synchronously. | Viewer.CORE_VIEWER_TYPES | js-api/src/viewer.ts:527 |
DIRTY_CELL_COLOR | readonly | 4294964173 | 0xFFFFF3CD | Background of a cell with an unsaved edit. Canvas ARGB ints, matching the platform's own in-grid editing — cell backgrounds are painted on the canvas, so they are not CSS-token territory. The amber and the orange have no Color equivalent; the red is the platform's own grid warning. | - | js-api/src/grid.ts:946 |
INVALID_CELL_COLOR | readonly | number | Color.gridWarningBackground | - | - | js-api/src/grid.ts:947 |
isRoot | static | boolean | false | A root has no owner by design (a dialog): built with none, it is not reported as owner-missing. | Viewer.isRoot | js-api/src/u2core/component.ts:81 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: js-api/src/viewer.ts:147
AI briefing of the underlying Dart viewer.
Returns
string | null
Set Signature
set aiDescription(
x):void
Defined in: js-api/src/viewer.ts:152
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
canvas
Get Signature
get canvas():
HTMLCanvasElement
Defined in: js-api/src/grid.ts:1171
Returns
HTMLCanvasElement
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
colHeaderBox
Get Signature
get colHeaderBox():
Rect
Defined in: js-api/src/grid.ts:1292
Column labels box
Returns
colHeaderHeight
Get Signature
get colHeaderHeight():
number
Defined in: js-api/src/grid.ts:1284
Column labels height
Returns
number
columns
Get Signature
get columns():
GridColumnList
Defined in: js-api/src/grid.ts:1137
Grid columns.
Returns
dataFrame
Get Signature
get dataFrame():
DataFrame
Defined in: js-api/src/viewer.ts:323
Returns
Set Signature
set dataFrame(
t):void
Defined in: js-api/src/viewer.ts:324
Parameters
| Parameter | Type |
|---|---|
t | DataFrame |
Returns
void
Inherited from
descriptor
Get Signature
get descriptor():
WidgetDescriptor
Defined in: js-api/src/viewer.ts:141
Descriptor of this widget.
Returns
Inherited from
editor
Get Signature
get editor():
IFrameEditor|null
Defined in: js-api/src/grid.ts:974
The editing engine attached through attachEditor, or null.
Returns
IFrameEditor | null
filter
Get Signature
get filter():
BitSet
Defined in: js-api/src/viewer.ts:134
combined filter of the viewer
Returns
Set Signature
set filter(
f):void
Defined in: js-api/src/viewer.ts:137
Parameters
| Parameter | Type |
|---|---|
f | BitSet |
Returns
void
Inherited from
helpUrl
Get Signature
get helpUrl():
string
Defined in: js-api/src/viewer.ts:327
Help URL
Returns
string
Set Signature
set helpUrl(
s):void
Defined in: js-api/src/viewer.ts:328
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
void