- Notifications
You must be signed in to change notification settings - Fork78
"Waiting for..." modal dialog with progress bar for Bootstrap
License
ehpc/bootstrap-waitingfor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
"Waiting for..." modal dialog with progress bar for Bootstrap.
See this plugin in action:rocket::http://bootsnipp.com/snippets/featured/quotwaiting-forquot-modal-dialog
- AMD-compatible
- Configurable
You can install this module with bowerbower install bootstrap-waitingfor
and include the files frombuild
directory.
You can install this module with npmnpm install --save bootstrap-waitingfor
and include it as shown:
constwaitingDialog=require('bootstrap-waitingfor');
In your javascript code write something like this:
waitingDialog.show('I\'m waiting');setTimeout(function(){waitingDialog.hide();},1000);
If you want to change the appearance of the modal, you can pass additional options:
waitingDialog.show('I\'m waiting',{dialogSize:'m',progressType:'success'});setTimeout(function(){waitingDialog.hide();},1000);
possible options fordialogSize
are
sm
- smallm
- normallg
- large
possible options for progressType are
success
danger
warning
info
🔥Before🔥 making a pull request do the following steps:
- Run
gulp
- Make sure
gulp
doesn't return any errors - Open
test/run.html
in your favorite browser - Make sure there are no errors in dev console
- Make sure all dialogs behave correctly
Setting up the environment:
- Install
Node.js
- Go to your project directory
- Run
npm install -g bower
- Run
npm install -g gulp
- Run
npm install
- Run
bower install
🌻You should only modify files insidesrc
ortest
directories!:sunflower: Files in thebuild
directory are generatedautomatically after runninggulp
.
HTML page example:
<html><head><metacharset="utf-8"><title>boostrap-waitingfor</title><linkhref="bower_components/bootstrap/dist/css/bootstrap.css"rel="stylesheet"/><linkhref="bower_components/bootstrap/dist/css/bootstrap-theme.css"rel="stylesheet"/></head><body><scriptsrc="../bower_components/jquery/dist/jquery.min.js"></script><scriptsrc="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script><scriptsrc="../build/bootstrap-waitingfor.js"></script></body></html>
About
"Waiting for..." modal dialog with progress bar for Bootstrap
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.