-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add parameter when we v-touch:swipe="myMethod(direction, myOtherParam)" #3
Comments
I'm sorry to reply you too late, I'm too busy these days. If you have some good solution to handle this issue, you can give me a PR, and I'll merge it soon. 😊 |
I'll check what I can do. I have quite a good load of work also on my side. |
I think it is difficult to implement this feature. If you put |
If you really want to do this, maybe you can write like that: <div v-touch:swipe="myMethod(myOtherParam)">Swipe</div> export default {
methods: {
myMethod (param) {
return function(dir) {
console.log(dir, param);
}
}
}
} Just return a function and append your own parameters is okay :) |
Hi,
As the title says, it would be nice to have something like a binding with extra parameters.
Example
v-touch:swipe="myMethod(direction, myOtherParam)"
The text was updated successfully, but these errors were encountered: