API reference
@salmonui/data-grid/engine/row-drag-drop
34 exported symbols: 6 functions, 9 interfaces, 18 types and 1 constant. Each name links its page with the signature, docs and members. Names re-exported from 2 other entry points are listed there, linked below.
import { … } from '@salmonui/data-grid/engine/row-drag-drop';Functions
computeDropPointDrop point for a pointer at fraction (0..1) of the height of visible row index: the upper half of a data row is before, the lower half after; a group caption i…createRowDragDropModuleCreates the rowDragDrop module. Options are read from options.rowDragDrop (RowDragDropOptions).isPinnedIndexTrue for a visible index among the pinned rows, which head the model. Pinned rows are neither drag sources nor drop targets: their place comes from pinning and…resolvePlacementData placement of a drop point: a data row id and before / after; null when the group is empty or unknown.
Types
RowDragCancelCommandRowDragDropCommandRowDragEndCommandEnds the drag; dropped: true with another targetGridId removes the rows from this grid.RowDragLeaveCommandRowDragMoveByCommandKeyboard reorder: move the rows offset data rows up (negative) or down.RowDragMoveCommandProgrammatic reorder. into (tree mode) makes the rows the last children of the target.RowDragOverCommandPointer over visible row index at fraction (0..1) of its height; or an explicit rowId + position.RowDragOverExternalCommandRowDragReceiveCommandRowDragReorderCommandreorderRows(fromIndexes, toIndex): data row indexes of the current view; the rows are removed and inserted so the first one ends at data index toIndex (clamped…RowDragSetEnabledCommandRowDragSetOptionsCommandRowDragSettledCommandA row move write settled (dispatched by the engine; part of the public command union).RowDragStartCommand
Re-exported entry points
@salmonui/data-grid/engine13 symbols: 9 interfaces and 4 types@salmonui/data-grid/engine/row-drag-state3 symbols: 2 functions and 1 constant