Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

How to hook a click, dblclick or contextmenu event to a dash-Item component? #88

Closed
bscbrn opened this issue Mar 24, 2020 · 2 comments
Closed

Comments

@bscbrn
Copy link

bscbrn commented Mar 24, 2020

Hello bensladden,
thank you very much for your continued effort in developing such a nice module.

I am trying to fire a dblclick event so that a configuration window opens up when the user double clicks on a dash-item.
So far I had no luck.
Is there any example I can use?
I am also trying to fire a click or a contextmenu event but nothink happens either.

Thank you very much for any help.

@bensladden
Copy link
Owner

Hi @bscbrn,
Here is an example of dbclick and contextmenu click: https://codesandbox.io/s/vue-responsive-dash-xnenx. Note the .native is required as it is a component not a div See: https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components

@bscbrn
Copy link
Author

bscbrn commented Mar 25, 2020

Hi @bensladden,
thank you very much this works very well.

@bscbrn bscbrn closed this as completed Mar 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants