Notifier

Unobtrusive notification messages can be used to give feedback to users.
Looking for a commercial license ? Keep your source code proprietary and Buy a Commercial License Today!

All of AlertifyJS animation/transition effects are disabled due to user preference that the system minimizes the amount of animation or motion it uses. See prefers-reduced-motion CSS media feature.

dismissAll ( )


Description: Dismisses all open notifications.

Parameters: none

 clearTimeout(window.timeout);
 alertify.success('Success', 0) && alertify.error('Error', 0)
 window.timeout = setTimeout(function(){
   alertify.dismissAll();
 },2000);
  

Remarks

To distinguish between an auto-dismiss event or a click event, the callback is passed a boolean flag indicating if the message was clicked.