-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
I have a gallery with "next" and "previous" buttons.
Here what i have now
<a href="#" v-on="click: previous">Previous</a>
<a href="#" v-on="click: next">Next</a>
I want them to work with 2 options.
- Clicking on the link.
- Clicking on left/right arrows on keyboard.
I tried
<a href="#" v-on="click: previous, keyup: previous | key 'left' ">Previous</a>
<a href="#" v-on="click: next, keyup: next | key 'right' ">Next</a>
But this didn't work.
Is this possible with vue.js?
Metadata
Metadata
Assignees
Labels
No labels