GridCell<TData>
Defined in: src/grid.ts:494
Represents a grid cell
Type Parameters
| Type Parameter | Default type |
|---|---|
TData | any |
Constructors
Constructor
new GridCell<
TData>(dart):GridCell<TData>
Defined in: src/grid.ts:497
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
GridCell<TData>
Properties
| Property | Type | Defined in |
|---|---|---|
dart | any | src/grid.ts:495 |
Accessors
bounds
Get Signature
get bounds():
Rect
Defined in: src/grid.ts:601
Grid cell bounds. Sample: https://public.datagrok.ai/js/samples/grid/cell-bounds
Returns
cell
Get Signature
get cell():
Cell
Defined in: src/grid.ts:578
Returns
Corresponding table cell.
cellType
Get Signature
get cellType():
string
Defined in: src/grid.ts:516
Returns
string
Cell type
Set Signature
set cellType(
x):void
Defined in: src/grid.ts:521
Allows to set cell type (needed when rendering single grid cell)
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
void
color
Get Signature
get color():
number
Defined in: src/grid.ts:596
Calculates cell background color, according to color-coding.
Returns
number
customText
Get Signature
get customText():
string
Defined in: src/grid.ts:569
Custom text to be shown in a cell .
Returns
string
Set Signature
set customText(
x):void
Defined in: src/grid.ts:570
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
void
documentBounds
Get Signature
get documentBounds():
Rect
Defined in: src/grid.ts:606
Grid cell bounds, relative to the document. Useful for showing hints, tooltips, etc.
Returns
element
Get Signature
get element():
HTMLElement
Defined in: src/grid.ts:622
Gets or sets HTML element for this grid cell.
Returns
HTMLElement
Set Signature
set element(
e):void
Defined in: src/grid.ts:623
Parameters
| Parameter | Type |
|---|---|
e | HTMLElement |
Returns
void
grid
Get Signature
get grid():
Grid
Defined in: src/grid.ts:573
Returns
this cell belongs to.
gridColumn
Get Signature
get gridColumn():
GridColumn<TData>
Defined in: src/grid.ts:561
Returns
GridColumn<TData>
Corresponding grid column.
gridRow
Get Signature
get gridRow():
number
Defined in: src/grid.ts:556
Returns
number
Index of the corresponding grid row.
isColHeader
Get Signature
get isColHeader():
boolean
Defined in: src/grid.ts:536
Returns
boolean
Whether this is a column header.