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

Does NotifyJS have events #113

Open
chrismartinez99 opened this issue Oct 4, 2017 · 1 comment
Open

Does NotifyJS have events #113

chrismartinez99 opened this issue Oct 4, 2017 · 1 comment

Comments

@chrismartinez99
Copy link

This may be related to #108

But does NotifyJS have any events? I'd like to find out if there are any events for on_close to indicate the notification has either been timed out or clicked away.

@azzahrah
Copy link

azzahrah commented Feb 19, 2018

//listen for click events from this style
$(document).on('click', '.notifyjs-foo-base .no', function() {
//programmatically trigger propogating hide event
$(this).trigger('notify-hide');
});
$(document).on('click', '.notifyjs-foo-base .yes', function() {
//show button text
alert($(this).text() + " clicked!");
//hide notification
$(this).trigger('notify-hide');
});

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