New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draggable with handler doesn't work #41
Comments
Hi, |
` <draggable :list="tour.invoice_position" :options="{animation:200, group: 'touren'}" :element="'tbody'" @change="update" >
and the other part: ......... ......... .........` |
Actually in your example you are not using the directive at all... |
<template>
<div class="draggable-with-handler" v-draggable="draggableWithHandler">
Use Handler To Drag Me
<div class="handler" ref="handler">
I am Handler
</div>
</div>
</div>
</template>
<script lang="ts">
import { Vue, Component, Prop } from "vue-property-decorator";
import { Draggable, DraggableValue } from "draggable-vue-directive";
@Component({
directives: {
Draggable
}
})
export default class App extends Vue {
draggableWithHandler: DraggableValue = { handle: undefined };
mounted() {
this.draggableWithHandler.handle = this.$refs.handler as HTMLElement;
}
}
</script> this is one of the examples from this repo. |
Hi,
I am using the code from the example (Draggable with handler) but it doesn't work..
the whole div is stil draggable.. the handler seems to be not recognized.
pls help :)
The text was updated successfully, but these errors were encountered: