Notify.js
A simple, yet fully customizable notification library
See demos and full documentation at:
https://notifyjs.com/
Notify.js is released under the MIT License.
Copyright © Jaime Pillora <[email protected]>
Category: JavaScript / Notifications |
Watchers: 70 |
Star: 1.9k |
Fork: 755 |
Last update: Nov 20, 2023 |
A simple, yet fully customizable notification library
See demos and full documentation at:
Notify.js is released under the MIT License.
Copyright © Jaime Pillora <[email protected]>
This should get us going on a new release. One question though, do we need to keep your style stuff? This is WAYYY over-engineered. We just need to support Bootstrap, or provide the styles in css for others to include in the CSS compilers. We don't need to bake styles into javascript ever. Do any projects actually do that? Horrible. We should provide one stylesheet for each theme. People not using a css compiler can just include that (resulting in another request). People who want to optimize that out can use a CSS compiler like god intended.
The market for people where two-requests is too much, but that aren't using a css compiler is non-existent. It's just more work on us and complicates our process.
Also feel free to drop me a msg on FB https://www.facebook.com/theevancarroll or gTalk < me at evancarroll.com >.
Tried to install via bower. Had to specify like so in bower.json file
"notifyjs": "https://github.com/jpillora/notifyjs/archive/gh-pages.zip"
Howdy:
Can we publish to npm? notifyjs is already taken as package name over there (which I use too!). perhaps as jquery-notifyjs
? I'd be happy to do the legwork.
Thx,
Chris
My messages are generated on backend and have many translations and different types, meaning it will be inefficient to make all this possible templates and translations on front end. But it looks like NotifyJs escapes HTML content, is there any way to pass HTML without escaping?
using notify.min.js with a framework or CMS that does not reference jQuery with $ will cause it to error (such as Wordpress).
this line: $.notify.addStyle(.... should be: jQuery.notify.addStyle(...
I'm using this plug in on top of an Angular app. In this particular case, I'm using $.notify as a callback after submitting a form. Curiously, the number of notifications that show keep adding up. One message if I submit once, 2 if I submit twice, then 3, 4, 5....
The notifications are removed from the DOM each time so it's really hard to investigate. I wonder if this is a notify.js bug or Angular's upload form fault. Is notify accidentally remembering/storing the number of messages somewhere?
https://github.com/jpillora/notifyjs/issues/128
Hello! I have been using Notify.Js for a while and recently was requested to translate my web app to use es-CO and en-US interchangibly. I am using a shared Resources for each of the languages and with that localizer all seemed well until I got to my jquery that is using the Notify with my success messages. For some reason the message "¡Éxito! Se ha creado el equipo" turns out to be a slew of characters followed by "xito! Se ha creado el equipo". I can assume that it is the "¡É" that is throwing it off, but I am unsure of how to fix this issue. Any help with this would be amazing. I will tag the success message and my code Thanks
jQuery.notify("@Localizer["TeamCreated"]", { className: "success", globalPosition: "top center" });
While upgrading from JQuery 2.2.4 to 3.6.1, I installed JQuery Migrate 3.4.0 and got the following warnings:
JQMIGRATE: jQuery.type is deprecated lines: 299, 500, 544 show below
this.run(data);
if ($.isPlainObject(data))
new Notification(null, data, options);
JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray lines: 474, 520, 299, 544 show below
if ($.isArray(this.options.className)) {
this.updateClasses();
this.run(data);
new Notification(null, data, options);
Hi, is it possible to hide displayed notification when use click on certain button. to prevent displaying two or more notification at the sametime.
Like this: $.notify.hide():????? // I need to hide every existing shown notifiction. $.notify('Please enter your name',{ position:'top right', className: 'error', });
This makes it compatible with newer Jquery. Resolves #138
null