View as Markdown

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.

DropPoint members (6)
NameSignatureDescription
indexreadonly index: number;

Visible index (clamped); count when the model is empty.

rowIdreadonly rowId: RowId | null;

Id of the row under the pointer, or null for an empty model.

kindreadonly kind: RowKind;
positionreadonly position: DropPosition;
groupIdreadonly groupId: RowId | null;

Group (caption row id) the drop lands in, or null when ungrouped.

parentIdoptionalreadonly parentId?: RowId | null;

Tree mode: the parent the dropped rows join (null: roots); absent outside tree mode.