vira - v33.8.0
    Preparing search index...

    Class DragReorderManager

    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 state so the element re-renders as the drag progresses, then attach dragReorderRows to the element whose direct children are the rows, dragReorderHandle to each row's handle, and dragReorderGhost to a copy of the dragged row rendered while value.draggedIndex is 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.

    Hierarchy

    Index
    draggedRow: Element | undefined
    ghostElement: HTMLElement | undefined
    onReorder: ((move: Readonly<DragReorderMove>) => void) | undefined

    The callback given to attachRows.

    pointerStart: { x: number; y: number } = ...
    rowsElement: HTMLElement | undefined
    stopTrackingPointer: (() => void) | undefined

    Removes the global listeners that move the ghost. Set only while a drag is in progress.

    • Whether to draw the drop line above or below the row at rowIndex.

      Parameters

      • rowIndex: number

      Returns { isAbove: boolean; isBelow: boolean }