Detect if Jquery Noty notification has been closed -


is there way detect if jquery noty notification has been closed using jquery itself?

i have noty notification on homepage. detect when notification has been closed. can this?

noty:

var n = noty({   layout: 'topcenter',   theme: 'relax',   type: 'information',   force: false,   text: 'this 1 worked',   animation: {     open: 'animated zoomin', // animate.css class names     close: 'animated zoomout', // animate.css class names   } }); 

there method called 'callback' in noty. how used detect on close:

var n = noty({   layout: 'topcenter',   theme: 'relax',   type: 'information',   force: false,   text: 'this 1 worked',   animation: {     open: 'animated zoomin', // animate.css class names     close: 'animated zoomout', // animate.css class names   },   callback: {     onclose: function() {       cookies.set('shownoty', false);     },   }, }); 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -