Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"Waiting for..." modal dialog with progress bar for Bootstrap

License

NotificationsYou must be signed in to change notification settings

ehpc/bootstrap-waitingfor

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

Features

  • AMD-compatible
  • Configurable

Installing

With bower

You can install this module with bowerbower install bootstrap-waitingfor and include the files frombuild directory.

With npm

You can install this module with npmnpm install --save bootstrap-waitingfor and include it as shown:

constwaitingDialog=require('bootstrap-waitingfor');

Using

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 - small
  • m - normal
  • lg - large

possible options for progressType are

  • success
  • danger
  • warning
  • info

Contributing

🔥Before🔥 making a pull request do the following steps:

  1. Rungulp
  2. Make suregulp doesn't return any errors
  3. Opentest/run.html in your favorite browser
  4. Make sure there are no errors in dev console
  5. Make sure all dialogs behave correctly

Setting up the environment:

  1. InstallNode.js
  2. Go to your project directory
  3. Runnpm install -g bower
  4. Runnpm install -g gulp
  5. Runnpm install
  6. Runbower install

🌻You should only modify files insidesrc ortest directories!:sunflower: Files in thebuild directory are generatedautomatically after runninggulp.

Examples

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

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp