Skip to content

DAlert Jquery Plugin - A simple dialog box plugin has the simple behaviour as the original Javascript alert. You can also replace the original alert() as you wish with just calling a function in the dalert.ReplaceAlert();

License

Unknown, MIT licenses found

Licenses found

Unknown
license.html
MIT
license.txt
Notifications You must be signed in to change notification settings

andrewdex/dalert

Repository files navigation

DAlert 1.1.1

Join the chat at https://gitter.im/andrewdex/dalert

Dalert is a simple jQuery and jQuery UI plugin that easily creates a customizable alert (or confirm) window as a replacement for the native javascript alert and confirm methods. Dependencies : jQuery, jQuery UI

Simple usage

//Dalert Alert Dialog

dalert.alert("I am a little DAlert !"); 

//Dalert With Callback

//Start :: DAlert Alert Usage with a callback on close of the alert		
    dalert.alert("Hello, I am a DAlert!", "Title", function callbackMe(){
        dalert.alert("Me callback !");
    });
//End :: DAlert Alert Callback Usage

//Dalert Confirm Dialog

dalert.alert("Are you sure?", "Confirm Title" , function (result) {
  if (result) {
    dalert.alert("Clicked yes"); // If yes clicked 
  } else {
    dalert.alert("Clicked no");  // If no clicked
  }
});

//Dalert Replace Native Alert

dalert.ReplaceAlert();

//Dalert Replace Native Confirm

dalert.ReplaceConfirm();

For Contributors : Devlopers : Getting started

Download the latest release or clone the repo, git clone git://github.com/andrewdex/dalert.git.

GruntJS : Task for Minification of DAlert

If you have node installed, install GruntJS Globaly and cd into the dalert directory then use npm install

To generate the minified file, type grunt

About

DAlert Jquery Plugin - A simple dialog box plugin has the simple behaviour as the original Javascript alert. You can also replace the original alert() as you wish with just calling a function in the dalert.ReplaceAlert();

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
license.html
MIT
license.txt

Stars

Watchers

Forks

Packages

No packages published