# updateOptions()

This method helps you update the draggable or droppable options. If you want to update options inside a event or based on some condition you can use this method to do so.

**Definition:**&#x20;

`updateOptions(options: DraggableOptions | DroppableOptions, reference: DraggableElement | DroppableElement | DraggableElements | DroppableElements | "drag" | "drop"): void`

_Description:_ Updates options for draggable or droppable elements or global drag/drop settings.

**Parameters:**

* **`options`** (`DraggableOptions | DroppableOptions`) - The options to update.
* **`reference`** - Specifies elements or global setting to update.

**Returns:**

* **`void`**

**Example:**

```typescript

redropInstance.updateOptions({ draggableOptions }, 'drag');
```
