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

Know what target the context menu? #9

Open
Sualty opened this issue Aug 22, 2017 · 1 comment
Open

Know what target the context menu? #9

Sualty opened this issue Aug 22, 2017 · 1 comment

Comments

@Sualty
Copy link

Sualty commented Aug 22, 2017

Hello,
First of all, great plugin :)
I would like to know if it's possible to get the element which is right-clicked (in order to bind it to an action of the context menu).If yes, how?

@IhorKlimov
Copy link

IhorKlimov commented Oct 26, 2017

@contextmenu.prevent="$refs.ctx.open($event, {color: color, index: index})">

@ctx-open="onCtxOpen" ... etc, go through the sample

from https://github.com/vmaimone/vue-context-menu/blob/master/index.html

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