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:
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:
redropInstance.updateOptions({ draggableOptions }, 'drag');
Last updated