amendx / vue-dndrop

:herb: A vue library for drag and drop :sparkles:
https://amendx.github.io/vue-dndrop
MIT License
202 stars 21 forks source link

Adding prop to define if the draggable element can be dragged #8

Closed leotabosa closed 2 years ago

leotabosa commented 2 years ago

Problem

A single Draggable element can't be configured to not allow dragging, we can only prevent it's drop or block the entire container.

Solution

drag-not-allowed prop added to block dragging in a single Draggable element.