API reference: @salmonui/data-grid/engine
DropPointinterface
import type { DropPoint } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/row-drag-drop.
interface DropPoint {
readonly index: number;
readonly rowId: RowId | null;
readonly kind: RowKind;
readonly position: DropPosition;
readonly groupId: RowId | null;
readonly parentId?: RowId | null;
}
Where a pointer is over the visible row model.
| Name | Signature | Description |
|---|---|---|
index | readonly index: number; | Visible index (clamped); |
rowId | readonly rowId: RowId | null; | Id of the row under the pointer, or null for an empty model. |
kind | readonly kind: RowKind; | |
position | readonly position: DropPosition; | |
groupId | readonly groupId: RowId | null; | Group (caption row id) the drop lands in, or null when ungrouped. |
parentIdoptional | readonly parentId?: RowId | null; | Tree mode: the parent the dropped rows join (null: roots); absent outside tree mode. |