Press "Enter" to skip to content

A Lightweight Front-End Confirmation Modal Dialog | confirmo

Confirmo is a lightweight front-end confirmation library that helps you get confirmations(Modal Dialog) before taking action on your web applications.

bs confirm modal popup, delete confirmation modal, modal confirm yes no, delete confirmation popup, jquery confirm dialog, modal confirm delete ajax

How to make use of it:

1. Import the Confirmo’s JavaScript and CSS files into the web page.

<link rel="stylesheet" href="./src/confirmo.css" />
<script src="./src/confirmo.js"></script>

2. Create a brand new instance of the Confirmo and config the verify dialog utilizing the next props.

confirmo.init({
  yesBg: 'green',
  noBg: 'red',
  backColor: 'black',
  textColor: 'white'
});

3. Show the verify dialog on the display, outline the verify message, and decide the action to set off as follows:

confirmo.show({
  msg: "Replace this text with what you want to prompt!",
  callback: function (){
    // confirmed
  }
});

4. You can even customize the verify dialog through solely HTML data attributes:

<button confirmo-message="Hello world" 
        confirmo-func="hello">
        Confirm
</button>
confirmo.init();
function hello(){
  alert('Confirmed!');
}

Minimal Confirmation Modal Dialog, confirmo Plugin/Github


See Demo And Download

Official Website(EdinyangaOttoho): Click Here

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

Be First to Comment

    Leave a Reply

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