Answer the question
In order to leave comments, you need to log in
Passing data between directives?
I am writing an application-specific stack of Drag'n'Drop, Resizable, Rotatable, Croppable. Before I decided to write, I dug Google myself in search of libraries, but in the end, the specifics of the application and the behavior, for example, Resizable and Rotatable, are very specific ...
In general, I decided to write to implement this stack in directives, because if the stack is divided into components, then there will be a lot of nesting in components, and if the entire stack is written in 1 component, then it’s personally more difficult and uncomfortable for me to change its functionality ...
I want to do something like this:
thrown element:
<div v-draggable>
<img :src="imgUrl">
</div>
<div v-droppable>
а это элементы принятые контейнером
<div
v-draggable
v-resizable
v-rotatable
v-croppable>
<img :src="imgUrl">
</div>
<div
v-draggable
v-resizable
v-rotatable
v-croppable>
<img :src="imgUrl">
</div>
...and more
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question