-
Notifications
You must be signed in to change notification settings - Fork 105
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
Show modal form when mouse hover on gantt #40
Comments
I'm soon adding a new option to gantt, it is going to let you apply events to the DOM node of each task: const options = {
...
taskElementHook: (node, task) => {
function onHover() {
console.log('hover', task);
}
node.addEventListener('mouseenter', onHover);
return {
destroy() {
console.log('destroy');
node.removeEventListener('mouseenter', onHover);
}
}
}
...
} It is basically a svelte action. |
Hi, Thanks for the awesome work :) |
The You could also do whatever you want on task select, see https://anovokmet.github.io/svelte-gantt/events |
Thanks :) |
I want to show when mouse hover a information modal form on a gantt chart item. How i can do it?
The text was updated successfully, but these errors were encountered: