Skip to content
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

Could you provide an example using a Handle? #32

Open
chrislentz opened this issue Dec 11, 2016 · 3 comments
Open

Could you provide an example using a Handle? #32

chrislentz opened this issue Dec 11, 2016 · 3 comments

Comments

@chrislentz
Copy link

Could you possible provide an example of how to use a handle to initiate the dragging? Some thing along the lines of the second to last Dragula example?

@Astray-git
Copy link
Owner

It's basically the same as in Dragula example.
Using vue 1.x:

created: function () {
  Vue.vueDragula.options('my-bag', {
    moves: function (el, container, handle) {
      return handle.classList.contains('handle');
    }
  })
}

@chrislentz
Copy link
Author

What about with Vue 2.x?

@Astray-git
Copy link
Owner

It should be the same in 2.0. I've just pushed a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants