The options of this table (TableOptionsIf.rowDragOptions + defaults).
Cancels a running drag (Escape, pointercancel, TableApi.cancelRowDrag, destroy): onRowDragEnd with the
type "cancel", nothing is moved.
Optional originalEvent: PointerEvent | KeyboardEventAdds the drag handle to a rendered body cell (called by the render pass for columns with rowDrag).
the cell div
from getHandleState
Why a managed drag is not possible right now: "sorted" (a column has the sort state asc/desc), "filtered"
(a filter hides rows), "cellFormulas" (moved rows would change the references of cell formulas, since 1.1.99)
– undefined if it is possible or the drag is unmanaged.
The drag handle of a body cell: none (no rowDrag, a group or pivot row, a managed drag the model cannot do),
enabled or disabled (managed + sorted/filtered).
Moves rows in the model (managed), repaints, keeps focus and selection on the moved rows and announces the new position.
display indices
drop target
select the moved rows again (multi-row drag)
the new display index of the first moved row, -1 if nothing moved
Row drag of one table (
tableScope.rowDragService): drag handles (ColumnDefIf.rowDrag), pointer drag with ghost, drop marker and auto-scroll, the keyboard alternative (MOVE_ROW_UP/MOVE_ROW_DOWN) and the managed move. Use TableApi.moveRows, TableApi.isRowDragging and TableApi.cancelRowDrag instead.Pointer Events (mouse, touch, pen) – only on the drag handle; its
pointerdownis prevented, so the mouse handler of the table (range selection, column drag) never sees it.Since
1.1.95