Custom Alert, Prompt, And Confirm Box Using jQuery | Dialogs Manager

Dialogs Manager jQuery UI Position primarily based dialog supervisor that can assist you to create customized alert popups, affirmation dialogs, and modal home windows on the webpage.

Please note: Because the jQuery UI library is very large, and you only need the Function feature, it is highly recommended to download it through the official Download Builder on the jQuery UI website. Just choose the position-only feature and download it to your local folder.

Must Read: Lightweight Implementation Of Modal Dialogs for Angular | ng-modal

jQuery Dialogs Manager Plugin Details

Post NamejQuery Custom Alert Box
Author Namekobizz
CategoryModal, Popup Plugins
Official PageClick Here
Official Websitegithub.com
Publish DateSeptember 6, 2020
Last UpdateAugust 1, 2023
DownloadLink Below
LicenseMIT

How to make use of it:

1. Add the most recent jQuery and jQuery UI on the webpage.

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

2. Load the Dialogs Manager’s JavaScript.

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

3. Create a new Dialogs Manager.

var myDialog = new DialogsManager.Instance();

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

var confirmWidget = dialogManager.createWidget('confirm', {
    headerMessage: 'Dialog Title',
    message: 'Are You Sure?',
    onConfirm: function () {
      console.log('I Confirmed!');
    },
    onCancel: function () {
      console.log('I Canceled!');
    }
});

5. Create a modal window on the web page.

var lightboxWidget = dialogManager.createWidget('lightbox', {
    headerMessage: 'Modal Title',
    message: 'Modal Content'
});

6. Create an alert dialog.

var lightboxWidget = dialogManager.createWidget('lightbox', {
    headerMessage: 'Modal Title',
    message: 'Modal Content'
});

7. Customize the types of popups.

.dialog-widget 

.dialog-widget * { box-sizing: border-box; }

.dialog-widget-content 
  background-color: #EAEAEA;
  position: absolute;
  width: 350px;
  height: 150px;
  margin: auto;
  border-radius: 5px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);


.dialog-widget-header 

.dialog-message 
  height: 70%;
  padding: 10px;
  font-family: sans-serif;
  font-size: 14px;


.dialog-buttons-wrapper 

.dialog-buttons-wrapper > button {
  margin: 0 10px;
  cursor: pointer;
}

See Demo And Download

Alert-Prompt-And-Confirm-Box-Dialogs-Manager

Official Website(kobizz): Click Here

This superior jQuery/javascript plugin is developed by kobizz. For extra Advanced Usage, please go to the official website.

Related Posts

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Leave a Reply

Your email address will not be published. Required fields are marked *