vue.js - vue draggable almost works -
i using vue draggable. in example trying drag html element specific class.
<draggable :list="list" class="dragarea" :options="{draggable:'.dragg-me'}"> <div class="draggable" v-for="element in list"> <div class="dragg-me">dragg me</div> <div class="element"> {{element.name}} </div> </div> </draggable>
here full example.
i need able drag div dragg-me
class, not working. nothing happens when that. if omit :options="{draggable:'.dragg-me'}"
or if set
draggable:'.draggable'
then of course works again.
is possible working way to?
use handle
, documented here.
<draggable :list="list" class="dragarea" :options="{handle:'.dragg-me'}">
here fiddle updated.
Comments
Post a Comment