API reference: @salmonui/data-grid/engine
DropTargetinterface
import type { DropTarget } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/row-drag-drop.
interface DropTarget extends DropPoint {
readonly dropIndex: number;
readonly valid: boolean;
readonly reason: string | null;
}
| Name | Signature | Description |
|---|---|---|
dropIndex | readonly dropIndex: number; | The data row index the first dropped row takes
after the drop ( |
valid | readonly valid: boolean; | |
reason | readonly reason: string | null; |
|
indexinherited | index: number; | Visible index (clamped); |
rowIdinherited | rowId: string | null; | Id of the row under the pointer, or null for an empty model. |
kindinherited | kind: RowKind; | |
positioninherited | position: DropPosition; | |
groupIdinherited | groupId: string | null; | Group (caption row id) the drop lands in, or null when ungrouped. |
parentIdoptionalinherited | parentId?: string | null; | Tree mode: the parent the dropped rows join (null: roots); absent outside tree mode. |