applyDraggableHandle
abstract fun applyDraggableHandle(modifier: Modifier, enabled: Boolean = true, interactionSource: MutableInteractionSource? = null, onDragStarted: (startedPosition: Offset) -> Unit = {}, onDragStopped: () -> Unit = {}, dragGestureDetector: DragGestureDetector = DragGestureDetector.Press): Modifier
Returns a Modifier that makes the given UI element a drag handle for the current table item.
This API is intended to be used from content rendered inside the current reorderable item. The resulting modifier only works correctly when applied to a node that is a descendant of ReorderableItem.
Return
the resulting modifier with drag-handle behavior applied.
Parameters
modifier
base modifier to extend with drag-handle behavior.
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.