🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Yet another jQuery/Bootstrap dialog box plugin used to replace the native alert and confirmation popup boxes using Bootstrap 4 modal component.

alert Bootstrap confirm popup Modal bootstrap-4

Documentation

boot4alert

boot4alert.js Easy & Light weight Javascripts library allow you to create alert or confirm message with Bootstrap 4 modals :)

Getting Started

Dependencies

Example

  • Alert message
<script> boot4.alert("Hello World!", "OK"); </script>
  • Alert message with callback function
 <script>   boot4.alert(     {       msg: "Call Back",       title: "Test Callback",       callback: function() {         console.log("callback");       }     },"OK");   </script>
  • Custom Background-color Header Alert message
   <script>    boot4.alert(     {       msg: "Custom Title",       title: "Test",       style: {         "background-color": "#6200ea",         color: "white",         "font-weight": "bold"       }     },     "OK"   );   </script>
  • Confirm message
<script>  boot4.confirm({     msg: "Confirm",     title: "Test Confirm",     callback: function(result) {       if(result){         console.log("ok");       }       else{         console.log("cancel");       }     }   }); </script>

Donate

Please donate to encourage and support ^ ^ Paypal : http://bit.ly/2FCa13E


You May Also Like