draggableHandle

context(cellScope: TableCellScope)
fun Modifier.draggableHandle(enabled: Boolean = true, interactionSource: MutableInteractionSource? = null, onDragStarted: (startedPosition: Offset) -> Unit = {}, onDragStopped: () -> Unit = {}, dragGestureDetector: DragGestureDetector = DragGestureDetector.Press): Modifier

Makes this modifier act as a drag handle for the current table item from cell content.

This is a convenience wrapper around TableItemScope.applyDraggableHandle for use inside a TableCellScope context. The modifier only works correctly when applied to a node that is a descendant of ReorderableItem.

Return

a modifier with drag-handle behavior applied.

Parameters

enabled

whether drag gestures are enabled for this handle.

interactionSource

optional MutableInteractionSource used to emit DragInteraction.Start when dragging begins.

onDragStarted

callback invoked when dragging starts.

onDragStopped

callback invoked when dragging stops.

dragGestureDetector

gesture detector that defines how dragging is started.