jquery.timeline icon indicating copy to clipboard operation
jquery.timeline copied to clipboard

hoverEvent

Open etalla opened this issue 4 years ago • 1 comments

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?

etalla avatar Jun 09 '21 18:06 etalla

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,

ka215 avatar Jun 17 '21 02:06 ka215