bootstrap confirmation modal - Free Download Confirm User Intention Using Bootstrap Confirmation Modal

Free Download Confirm User Intention Using Bootstrap Confirmation Modal

Posted on

This time I will share jQuery Plugin and tutorial about Confirm User Intention Using Bootstrap Confirmation Modal, hope it will help you in programming stack.

bootstrap confirmation modal - Free Download Confirm User Intention Using Bootstrap Confirmation Modal
File Size: 6.11 KB
Views Total: 401
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A fully customizable confirmation dialog component that provides a quick way to confirm user intentions in your Bootstrap 4 powered sites or web apps.

Created using jQuery library and Bootstrap 4’s modal component.

How to use it:

1. To begin with, load the minified version of the Bootstrap Confirmation Modal plugin in your Bootstrap project.

1 <!-- jQuery + Bootstrap -->
2 <link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
3 <script src="/path/to/cdn/jquery.slim.min.js"></script>
4 <script src="/path/to/cdn/bootstrap.bundle.min.js"></script>
5 <!-- Bootstrap Confirmation Modal -->
6 <script src="src/bootstrap-confirmation-modal.min.js"></script>

2. Initialize the plugin and config the Bootstrap Confirmation Dialog with the following parameters.

  • title: Dialog Title
  • closeIcon: Determine whether to show the close icon. Default: false.
  • message: Confirm message
  • no: Customize the Reject button
  • yes: Customize the Confirm button
  • yesCallBack: Triggered when confirmed
  • noCallBack: Triggered when rejected
01 bootstrapConfirmation({
02   config: {
03     title: 'Confirm Title',
04     closeIcon: true,
05     message: 'Are You Sure?',
06     no: {
07       class: 'btn btn-danger',
08       text: 'Cancel'
09     },
10     yes: {
11       class: 'btn btn-success',
12       text: 'Okay'
13     }
14   }
15   yesCallBack: function () {
16     // confirmed
17   },
18   noCallBack: function () {
19     // canceld
20   }
21 });