View as Markdown

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;
};
RowDragDropMethods members (3)
NameSignatureDescription
getPayloadgetPayload(ctx: ModuleContext<Row>): RowDragPayload<Row> | null;

The dragged rows (for drops on custom elements and DataTransfer), or null.

getSessiongetSession(ctx: ModuleContext<Row>): RowDragSession | null;
getEventArgsgetEventArgs(ctx: ModuleContext<Row>): RowDragEventInfo<Row> | null;

Drag event argument fields for the current session, or null.