Alert Confirm Modal Dialogs Manager - Free Download Create Custom Alert/Confirm/Modal Popups With jQuery UI - Dialogs Manager

Free Download Create Custom Alert/Confirm/Modal Popups With jQuery UI – Dialogs Manager

Posted on

This time I will share jQuery Plugin and tutorial about Create Custom Alert/Confirm/Modal Popups With jQuery UI – Dialogs Manager, hope it will help you in programming stack.

Alert Confirm Modal Dialogs Manager - Free Download Create Custom Alert/Confirm/Modal Popups With jQuery UI - Dialogs Manager
File Size: 52.1 KB
Views Total: 3659
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

This is a jQuery & jQuery UI Position based dialog manager to help you create custom alert popups, confirmation dialogs and modal windows on the webpage.

How to use it:

1. Make sure you have the latest jQuery and jQuery UI Position (Choose only the position feature and download the custom build here) are included on the webpage.

1 <script src="jquery.min.js"></script>
2 <script src="jquery-ui.min.js"></script>

2. Load the Dialogs Manager’s JavaScript right before the closing body tag.

1 <script src="dist/js/dialogs-manager.min.js"></script>

3. Create a new Dialogs Manager instance and we’re ready to go.

1 var myDialog = new DialogsManager.Instance();

4. Create a custom confirmation dialog with Confirm/Cancel actions.

01 var confirmWidget = dialogManager.createWidget('confirm', {
02     headerMessage: 'Dialog Title',
03     message: 'Are You Sure?',
04     onConfirm: function () {
05       console.log('I Confirmed!');
06     },
07     onCancel: function () {
08       console.log('I Canceled!');
09     }
10 });

5. Create a normal modal window on the page.

1 var lightboxWidget = dialogManager.createWidget('lightbox', {
2     headerMessage: '<a href="https://www.jqueryscript.net/tags.php?/Modal/">Modal</a> Title',
3     message: 'Modal Content'
4 });

6. Create an alert dialog with a confirm action.

1 var alertWidget = dialogManager.createWidget('alert', {
2     headerMessage: 'Dialog Title',
3     message: 'Are You Sure?',
4     onConfirm: function () {
5       console.log('I Confirmed!');
6     }
7 });

7. Customize the styles of the popups.

01 .dialog-widget {
02   position: fixed;
03   height: 100%;
04   width: 100%;
05   top: 0;
06   left: 0;
07   -webkit-user-select: none;
08   -moz-user-select: none;
09   background-color: rgba(0, 0, 0, 0.5);
10 }
11  
12 .dialog-widget * { box-sizing: border-box; }
13  
14 .dialog-widget-content {
15   background-color: #EAEAEA;
16   position: absolute;
17   width: 350px;
18   height: 150px;
19   margin: auto;
20   border-radius: 5px;
21   box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
22 }
23  
24 .dialog-widget-header {
25   height: 20px;
26   background-image: linear-gradient(to top, #A0A09D, #D9D9D9);
27   font-size: 14px;
28   text-align: center;
29 }
30  
31 .dialog-message {
32   height: 70%;
33   padding: 10px;
34   font-family: sans-serif;
35   font-size: 14px;
36 }
37  
38 .dialog-buttons-wrapper { text-align: center; }
39  
40 .dialog-buttons-wrapper > button {
41   margin: 0 10px;
42   cursor: pointer;
43 }

Changelog:

v4.8.1 (2020-08-18)

v4.8.0 (2020-08-14)

  • Update

v4.7.7 (2020-08-10)

  • Update

v4.7.6 (2020-02-12)

  • Update

v4.7.5 (2020-02-10)

  • Update

v4.7.4 (2020-01-19)

  • Update

v4.7.3 (2019-07-16)

  • Update

v4.7.2 (2019-06-26)

  • Update

v4.7.1 (2019-01-14)

  • Update

v4.7.0 (2019-01-10)

  • Update

v4.6.1 (2019-01-04)

  • Update

v4.6.0 (2018-12-26)

  • Update

v4.5.1 (2018-10-28)

  • Update

This awesome jQuery plugin is developed by kobizz. For more Advanced Usages, please check the demo page or visit the official website.