kamranahmedse / jquery-toast-plugin

Highly customizable jquery plugin to show toast messages
http://kamranahmed.info/toast
1.51k stars 508 forks source link

Toast function 'close' added to programmatically close the toast in a way that allows triggers to occur. #21

Closed Stephen9s closed 7 years ago

Stephen9s commented 7 years ago

Toast function 'close' added to programmatically close the toast in a way that allows triggers to occur. The 'reset' function removes the toast from the DOM without invoking any triggers. This request invokes the click function trigger attached on close-jq-toast-single, which will cause the triggers to fire, allowing you to perform functionality provided by beforeHide/afterHidden.