Skip to content

@jsvision/datagrid / RenderCell

Interface: RenderCell<T, V> ​

Defined in: datagrid/src/cell-draw.ts:12

The per-cell paint state handed to a custom renderer (read-only).

Type Parameters ​

T ​

T

V ​

V

Properties ​

row ​

readonly row: T

Defined in: datagrid/src/cell-draw.ts:22

The row record.


state ​

readonly state: CellState

Defined in: datagrid/src/cell-draw.ts:24

Which composited states are active on this cell.


value ​

readonly value: V

Defined in: datagrid/src/cell-draw.ts:20

The cell's typed value.


width ​

readonly width: number

Defined in: datagrid/src/cell-draw.ts:18

Cell width in columns.


x ​

readonly x: number

Defined in: datagrid/src/cell-draw.ts:14

Cell rect origin x, body-local (metrics only — the ctx origin is already the cell).


y ​

readonly y: number

Defined in: datagrid/src/cell-draw.ts:16

Cell rect origin y, body-local.