https://github.com/sdelements/jquery-confirm-action
Click confirmation for the masses <3
https://github.com/sdelements/jquery-confirm-action
Last synced: 3 months ago
JSON representation
Click confirmation for the masses <3
- Host: GitHub
- URL: https://github.com/sdelements/jquery-confirm-action
- Owner: sdelements
- License: mit
- Created: 2015-08-11T18:18:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T18:34:02.000Z (almost 5 years ago)
- Last Synced: 2025-04-07T14:47:01.760Z (3 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 6
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jQuery Confirm Action

## 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();
}
}
}
});
```