NOTY is a jQuery plugin that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog. Each notification is added to a queue. (Optional)


API & Callbacks

NOTY have 5 callback option for now. onShow - afterShow - onClose - afterClose - afterCloseClick

API Methods

var n = noty({text: 'Hi!'});


console.log($.noty.get(n.id)); // Returns a NOTY javascript object
console.log(n); // Returns a NOTY javascript object


$.noty.close(n.id); // Close a NOTY
n.close(); // same as above


$.noty.setText(n.id, 'Hi again!'); // Notification text updater
n.setText('Hi again!'); // same as above


$.noty.setType(n.id, 'error'); // Notification type updater
n.setType('error'); // same as above


$.noty.clearQueue(); // Clears the notification queue
$.noty.closeAll(); // Close all notifications