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

Can we open context menu on left click? #91

Open
evdigitech opened this issue Sep 4, 2020 · 1 comment
Open

Can we open context menu on left click? #91

evdigitech opened this issue Sep 4, 2020 · 1 comment

Comments

@evdigitech
Copy link

Hi,

Is there any way to open context menu by left click? If yes, then please share demo code for that.

Thanks

@msarsha
Copy link
Owner

msarsha commented Sep 5, 2020

Yes there is, use the shMenuTriggers input:
https://github.com/msarsha/ng2-right-click-menu/blob/master/projects/ng2-right-click-menu/src/lib/sh-attach-menu.directive.ts#L25

Provide it with an array of event names, in your case: ['click']

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