scottoffen / jquery.toaster Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin for displaying customizable toast notifications via Bootstrap alerts
Home Page: http://scottoffen.github.io/jquery.toaster/
License: Other
jQuery plugin for displaying customizable toast notifications via Bootstrap alerts
Home Page: http://scottoffen.github.io/jquery.toaster/
License: Other
yarn/npm package managers require this file. Please add a basic one. Here is example for you:
{
"name": "jquery-toaster",
"version": "1.0",
"description": "Toaster-style notifications plugin for jQuery",
"main": "jquery.toaster.js",
"repository": {
"type": "git",
"url": "https://github.com/scottoffen/jquery.toaster"
},
"keywords": [ "jquery", "plugin", "toaster", "toast", "growl" ],
"author": "Scott Offen",
"licenses": [{
"type": "Apache-2.0",
"url": "https://raw.githubusercontent.com/scottoffen/jquery.toaster/master/LICENSE"
}],
"bugs": {
"url": "https://github.com/scottoffen/jquery.toaster/issues"
}
}
Apparently, some people who shall remain unnamed would prefer to use ordered string arguments instead of passing an object. So, in addition to popping up some toast like this:
$.toaster({ message : 'Your message here' });
$.toaster({ message : 'Your message here', title : 'My Title' });
$.toaster({ message : 'Your message here', title : 'My Title', priority : 'danger' });
Some people would prefer to do it like this:
$.toaster('Your message here');
$.toaster('Your message here', 'My Title');
$.toaster('Your message here', 'My Title', 'danger');
Hi,
Is there an easy way to remove of the toast messages in view?
Thanks
Euan
Currently, I can't change the defaults used for title and priority. This was short-sighted of me and needs to be corrected.
Embarrassingly, I have a glaring error in my documentation that I just noticed - because I never bothered to reread my documentation after that first day, I guess.
fade : [ in : 'fast', out : 'slow' ]
Should (obviously) be:
fade : { in : 'fast', out : 'slow' }
I did this (or something like it) in multiple places.
Attempting to change the CSS in the toaster settings replaced the toaster settings object instead of extending it.
Example:
$.toaster({ settings : { toaster : { css : { "bottom" : "0px" } } } });
When the title is blank, the default template still shows the colon after where the title would appear. It would be really cool if it was removed automatically if the title is blank. I realize I could override the default template myself, but this seems like a nice little enhancement to make the defaults more useful.
As Bower is officially deprecated, it would be awesome if this was published on NPM.
Hi,
Please, You could add a header comment to do easy know who make this great tool and the version that is in use.
Thanks
Hey Scott,
I'm not sure if you're still supporting this project or not. Any chance it can be made a bower package?
Best regards,
Gunther
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.