API reference: @salmonui/data-grid/engine
RowDragHandoffinterface
import type { RowDragHandoff } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid, @salmonui/data-grid/engine/row-drag-drop.
interface RowDragHandoff {
begin(payload: Omit<RowDragPayload, 'token'>, onDropped: (targetGridId: string) => void): string;
get(token: string): RowDragPayload | undefined;
complete(token: string, targetGridId: string): void;
cancel(token: string): void;
}
Caller-owned registry shared by grids that drag rows between each other (rowDragDrop.handoff).
| Name | Signature | Description |
|---|---|---|
begin | begin(payload: Omit<RowDragPayload, 'token'>, onDropped: (targetGridId: string) => void): string; | |
get | get(token: string): RowDragPayload | undefined; | |
complete | complete(token: string, targetGridId: string): void; | The target grid accepted the rows. |
cancel | cancel(token: string): void; |