Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.18 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.18 KB

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