Documentation

@kanunilabs/datagrid


@kanunilabs/datagrid / RowDragPayload

Interface: RowDragPayload

Defined in: datagrid/src/createGrid.ts:122

What travels in dataTransfer when a row leaves its grid.

Properties

gridId

gridId: string

Defined in: datagrid/src/createGrid.ts:124

Grid the row started in — a same-grid drop is a REORDER, not a move.


group

group: string | null

Defined in: datagrid/src/createGrid.ts:126

Only grids sharing a group exchange rows.


row

row: unknown

Defined in: datagrid/src/createGrid.ts:129

The row itself, so the receiving grid can insert it without a round trip.


rowKey

rowKey: RowKey

Defined in: datagrid/src/createGrid.ts:127