# disable()

To disable one or more draggable or droppable elements simultaneously, this method stops all associated events. However, the elements will remain draggable or droppable; only their interactions will be deactivated.

**Definition:**&#x20;

`disable(reference?: DraggableElement | DroppableElement | DraggableElements | DroppableElements | "drag" | "drop"): void`

_Description:_ Disables specified elements or global drag/drop settings.

**Parameters:**

* **`reference`** - The elements or global drag/drop to disable.

**Returns:**

* **`void`**

**Example:**

```typescript
redropInstance.disable(draggableElement, "drag");
```
