API reference: @salmonui/data-grid/engine
RowDragDropMethodstype
import type { RowDragDropMethods } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/row-drag-drop.
type RowDragDropMethods<Row> = {
getPayload(ctx: ModuleContext<Row>): RowDragPayload<Row> | null;
getSession(ctx: ModuleContext<Row>): RowDragSession | null;
getEventArgs(ctx: ModuleContext<Row>): RowDragEventInfo<Row> | null;
};
| Name | Signature | Description |
|---|---|---|
getPayload | getPayload(ctx: ModuleContext<Row>): RowDragPayload<Row> | null; | The dragged rows (for drops on custom elements and |
getSession | getSession(ctx: ModuleContext<Row>): RowDragSession | null; | |
getEventArgs | getEventArgs(ctx: ModuleContext<Row>): RowDragEventInfo<Row> | null; | Drag event argument fields for the current session, or null. |