Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sdelements/jquery-confirm-action
- Owner: sdelements
- License: mit
- Created: 2015-08-11T18:18:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T18:34:02.000Z (over 4 years ago)
- Last Synced: 2024-10-11T22:46:48.575Z (3 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 6
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
}
}
}
});
```