@kanunilabs/datagrid-react / FocusedRowChangedEvent
Interface: FocusedRowChangedEvent<TRow>
The focused ROW changed — fired only when the row itself differs, so moving left and right along one row does not wake row-level listeners.
Type Parameters
TRow
TRow = GridRowData
Properties
previousRowKey
previousRowKey:
RowKey|null
reason
reason:
"move"|"view"
Why focus moved (Tekax B.12.2): 'move' — a click, a key or a call
(focusCell, focusRow…), each asked through onRowLeaving; 'view' —
the focused row left the view (filtered, deleted, collapsed) and focus fell
to a neighbour, which onRowLeaving is not asked about.
row?
optionalrow?:TRow
Undefined for a group header, or when nothing is focused.
rowKey
rowKey:
RowKey|null