Skip to content

lenilsondc/bootstrap-confirm-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Bootstrap Confirm Plugin

Bootstrap Confirm is a jQuery plugin based on Bootstrap Modal to create a confirmation dialog system.

API

Usage

The plugin can be triggered by data-toggle="confirm" attribute, like bootstrap standard components. Supports either link redirections and form submitions.

<form>
    <button class="btn btn-default" 
      data-toggle="confirm" 
      data-title="Wait!" 
      data-message="Are you sure?"
      data-type="success">
      Confirm Form Submition
    </button>
</form>

<a href="#" 
  data-toggle="confirm" 
  data-title="Wait!" 
  data-message="Are you sure?"
  data-type="danger">
  Confirm link
  </a>

Options

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-title="".

Name type default description
title string 'Confirm' Represents the title of dialog modal
message string 'Are your sure?' The confirmation message
type enum success | info | warning | danger | default Sets the colors on dialog template
template html '<div class="modal" ...' Is the template for the dialog modal, it can be changed for diferent modal templates

About

Confirm dialog based on Bootstrap Modal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published