-
-
Notifications
You must be signed in to change notification settings - Fork 69
Single moveable control box #54
Comments
Hey @daybrush I guess it's wise to support both versions, e.g. <vue-moveable :target="document.querySelector(".target")">
<div class="target"></div>
</vue-moveable> and <!-- single target -->
<vue-moveable>
<div class="target"></div>
</vue-moveable>
<!-- multiple targets -->
<vue-moveable>
<div class="target"></div>
<div class="target"></div>
</vue-moveable> What do you think? |
is it possible? <vue-moveable :target="document.querySelector('.target')" />
<div class="target"></div> |
right now - no. But I can implement it |
I don't think it's possible in general. Vue will look for <vue-moveable target=".target" /> |
I am not a vue expert, therefore no pull request from my side, but I have tested locally following: Would be nice, if it works for you as well and you can add the changes. |
@markusnissl Thanks for your feedback. |
Thanks for your great work on this @probil, |
Any updates ? |
It has props of target in moveable.
Each time the target changes, the moveable box changes.
But only vue is different.
daybrush/moveable#55
The text was updated successfully, but these errors were encountered: