View as Markdown

API reference: @salmonui/data-grid/engine/row-drag-drop

resolvePlacementfunction

import { resolvePlacement } from '@salmonui/data-grid/engine/row-drag-drop';
function resolvePlacement<Row>(model: RowModelSnapshot<Row>, point: DropPoint): {
    readonly targetRowId: RowId | null;
    readonly position: 'before' | 'after';
    readonly groupId: RowId | null;
} | null;

Data placement of a drop point: a data row id and before / after; null when the group is empty or unknown.