Skip to content
/ eModal Public
forked from saribe/eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.

Notifications You must be signed in to change notification settings

zhangbg/eModal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eModal for Bootstrap

eModal is a Easy way to manage modal dialogs using bootstrap.

Current Version

1.0.1

Quick Start

  1. Link to eModal.js <script src="//rawgit.com/saribe/eModal/master/dist/eModal.min.js"></script>

  2. use eModal to display a modal for alert, ajax, prompt or confirm

     // Display an alert modal with default title (Attention)
     eModal.alert('You shall not pass!');
    

Other Options

// Display a confirm modal, with custom title.
eModal.confirm('Do you really want to pass?', 'Gandalf question', function(answer){...});

// Display a ajax modal, with a title
eModal.ajax('http://mydomail.com/page.html', 'Jobs - Form apply')

// Display an prompt modal, with a title
eModal.prompt('What is the best song ever?', 'Fill the input')
	
// eModal default settings with your custom html loading template
eModal.setEModalOptions({ 
    loadingHtml: '<span class="fa fa-circle-o-notch fa-spin fa-3x text-primary"></span><h4>Loading</h4>',
    ...
});

Demo and documentation

Copyright

Copyright © 2014-2015

License

Under MIT license - http://www.opensource.org/licenses/mit-license.php

About

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.7%
  • HTML 6.3%