> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# dragAndDrop

Performs a drag-and-drop operation from a source element to a target element.
Both source and target elements are identified using selector strategies.
Example: `dragAndDrop(source: { selector: "#item-to-drag" }, target: { selector: "#drop-zone" })`
Returns true if the drag-and-drop was successful.

## Definition

```graphql theme={null}
dragAndDrop(
  source: ElementOptions!
  target: ElementOptions!
  options: DragAndDropOptions
): Boolean!
```

## Arguments

### `source`

[ElementOptions!](/reference/graphql/inputs/element-options)

Selector options for the source element to drag.

### `target`

[ElementOptions!](/reference/graphql/inputs/element-options)

Selector options for the target element to drop onto.

### `options`

[DragAndDropOptions](/reference/graphql/inputs/drag-and-drop-options)

Options for the drag-and-drop operation, like force or specific positions.

## Returns

[Boolean!](/reference/graphql/scalars/boolean)

The `Boolean` scalar type represents `true` or `false`.
