0.3.4 • Published 1 year ago

bootstrap-confirm-button v0.3.4

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

Bootstrap Confirm Button

npm version

A simple button to comfirm a task. Instead of using rude modals that interrupt a user's workflow, let's use a inline unobtrusive button instead. Designed especially for devices with small screen.

Compatible with Bootstrap 3.3.7!

Ispired by: http://eli.eliandlyndi.com/2011/10/10/using-jquery-to-provide-an-inline-confirmation-on-buttons/

Demo

Events

EventDataDescription
'confirm:before'{}fired at first click over button
'confirm:expired'{}fired after button is auto hidden

Usage:

<a class="btn btn-primary btn-delete-item">Delete</a>
$('.btn-delete-item').btsConfirmButton("I'm sure!", function(e) {
	console.log('Item deleted!');
});

advanced configuration:

$('.btn-delete-item').btsConfirmButton({
		msg: "Confirm Deletion",
		timeout: 3000,
		className: 'btn-danger'
	}, function(e) {
	console.log('Item deleted!');
});

Image

Source:

Github NPM

0.3.4

1 year ago

0.3.3

3 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

8 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago