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

hoverEvent #84

Open
etalla opened this issue Jun 9, 2021 · 1 comment
Open

hoverEvent #84

etalla opened this issue Jun 9, 2021 · 1 comment

Comments

@etalla
Copy link

etalla commented Jun 9, 2021

The docs mention a "hoverEvent" that can be set to true/false in Effects.

Can an action (such as opening a popup with the event details) be tied to that and if so how?

@ka215
Copy link
Owner

ka215 commented Jun 17, 2021

Hi there,
The Effects.hoverEvent option allows you to change the component style of an event node on the pointer type only. Therefore, it is incorrect to use this option to handle other events.
If you want to handle all event nodes with custom actions, it is best to use the "openEvent" method. Alternatively, the following approach can be considered.

$(document).on('mouseenter', '.jqtl-event-node', function(e){
  console.log('This event node is hovering now!')
})

Thank you,

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