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

added support for on hover notifications #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reiern70
Copy link

Hi,

For a use case we needed notifications to be closed on user hovering the mouse over the notification. So I have introduced new callback functions on settings

over: function (e. instance) {...}
out: function (e. instance) {...}

that will be called when mouse is over the notification and and juts lived notification.

By default if hoverIntent.js is present (and loaded before notify.js) then hover intent will be used. If not present then default jquery hover will be used. If present but you still want to use jquery hover you can pass parameter {useHoverIntent: false}.

I have modified the sample app to show these options.

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

Successfully merging this pull request may close these issues.

1 participant