ProtecteddraggedProtectedghostProtectedonThe callback given to attachRows.
ProtectedpointerProtectedrowsProtectedstopRemoves the global listeners that move the ghost. Set only while a drag is in progress.
Used by dragReorderGhost.
Used by dragReorderRows.
Clean up all listeners and any other internal state.
Used by dragReorderRows.
Used by dragReorderRows.
Used by dragReorderHandle. A release outside the rows still lands where the drop line was
last drawn.
ProtectedfinishResets to the idle state and only calls onReorder when dropIndex is defined.
ProtectedreadCounts the rows whose vertical midpoint is above the pointer.
Whether to draw the drop line above or below the row at rowIndex.
Used by dragReorderHandle.
Drag-to-reorder for rows that the host element renders itself, so the host keeps its own markup and styles (including table rows). Store one in an element's
stateso the element re-renders as the drag progresses, then attachdragReorderRowsto the element whose direct children are the rows,dragReorderHandleto each row's handle, anddragReorderGhostto a copy of the dragged row rendered whilevalue.draggedIndexis set. The ghost is positioned over the dragged row and follows the pointer; style its opacity yourself.Nothing is reordered for you: apply each DragReorderMove to your own data.