Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sdelements/jquery-confirm-action

Click confirmation for the masses <3
https://github.com/sdelements/jquery-confirm-action

Last synced: about 2 months ago
JSON representation

Click confirmation for the masses <3

Awesome Lists containing this project

README

        

# jQuery Confirm Action

![screenshot](screenshot.png)

## Getting Started

```html

```

```javascript
$('.my-button').confirmAction({
title: {
text: 'Whoa!'
},
message: {
text: 'You are about to do a bad thing, are you sure?'
}
});
```

## Advanced Usage

```javascript
$('.my-button').confirmAction({
title: {
html: [
'
',
'Stop right there!'
],
style: 'danger'
},
message: {
html: 'You are about delete the internet, are you sure?'
},
actions: {
confirm: {
text: 'Go Ahead',
callback: function(confirm, cancel) {
confirm();
}
}
}
});
```