DataGridRow
Row controller for a DataGrid.
A standalone, persistent plain class — one per data row — mirroring the
DataGridColumn controller pattern (and deliberately not TableRow,
which is itself an element). It is the source-of-truth object for a row and
serves as the row handle: code may hold it whether or not the row is on-screen.
It owns its measured height (null until measured — mirroring how a column
owns width), so heights travel with the record across sorts/splices. The dumb,
pooled row element is referenced as this.element only while windowed; the
cumulative offset is read from the grid's rowGeometry, not stored here.
Constructor
new DataGridRow(options)
Instance Properties
offset
Cumulative top offset (px) in body space — read from the grid's rowGeometry.
Instance Methods
cellOf()
The live cell element for a column (by identity), or null when off-screen.
Measure the (auto-height) row element and record it on the controller. Returns true if the height changed (so the grid can reflow geometry).
mount()
Mount (or reposition) this row into the grid body.
Position via transform (no layout cost beyond the transform).
Detach: return cells + the row element to their pools and drop references.