View as Markdown

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).

RowDragHandoff members (4)
NameSignatureDescription
beginbegin(payload: Omit<RowDragPayload, 'token'>, onDropped: (targetGridId: string) => void): string;
getget(token: string): RowDragPayload | undefined;
completecomplete(token: string, targetGridId: string): void;

The target grid accepted the rows.

cancelcancel(token: string): void;