Alex Sidorov 81ced0454c First commit | 1 سال پیش | |
---|---|---|
.. | ||
dist | 1 سال پیش | |
.gitignore | 1 سال پیش | |
Gruntfile.js | 1 سال پیش | |
LICENSE | 1 سال پیش | |
README.md | 1 سال پیش | |
animate.css | 1 سال پیش | |
bootstrap-notify.js | 1 سال پیش | |
bootstrap-notify.min.js | 1 سال پیش | |
bower.json | 1 سال پیش | |
composer.json | 1 سال پیش | |
jshintrc.json | 1 سال پیش | |
package.js | 1 سال پیش | |
package.json | 1 سال پیش | |
test_meteor.js | 1 سال پیش |
This is a simple plugin that turns standard Bootstrap alerts into "Growl-like" notifications.
I would like to thank Błażej Krysiak for doing this!
bower install remarkable-bootstrap-notify
Meteor integration by zimme.
meteor add mouse0270:bootstrap-notify
Updating version pattern.
x.y.z
x = Main version of the plugin
y = New features were added to the plugin
z = Fixes/patches to existing features of the plugin
Set Progress bar value / Progress bar not shown by default
//Update
var notify = $.notify('<strong>Saving</strong> Do not close this page...', { allow_dismiss: false });
notify.update({ type: 'success', '<strong>Success</strong> Your page has been saved!' });
// Turn of Progress bar on
$.notify('I have a progress bar', { showProgressbar: true });
// Update Progress bar
var notify = $.notify('<strong>Saving</strong> Do not close this page...', { allow_dismiss: false });
notify.update({ type: 'warning', '<strong>Oops</strong> Something happened. Correcting Now', progress: 20 });
Added Transition CSS to plugin
tranition: all 0.5 ease-in-out;
Remember to read to documenation. I use custom css style's for the progress bar that you can find there. This was left out of the plugin so you could choose to use the default progressbar styles provided for bootstrap or write your own.
I have created a small demo to show off some of the features that you can use with this plugin. http://bootstrap-growl.remabledesigns.com/
There is alot of documentation on the website. Click the link below to read it.
The MIT License (MIT) Copyright (c) 2014 Robert McIntosh
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.