https://github.com/tocsoft/jquery.conf
a lightweight jquery plugin to provide a styleable confirmation dialog box
https://github.com/tocsoft/jquery.conf
Last synced: over 1 year ago
JSON representation
a lightweight jquery plugin to provide a styleable confirmation dialog box
- Host: GitHub
- URL: https://github.com/tocsoft/jquery.conf
- Owner: tocsoft
- License: mit
- Created: 2013-07-11T09:30:33.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-11T11:24:56.000Z (almost 13 years ago)
- Last Synced: 2025-01-30T04:27:10.294Z (over 1 year ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
A simple javascript based confirmation dialog box
to wire in you call
`$(selector).confirmDialog();`
you can update the details options for all future confirm boxes by updating
`$.confirmDialog.defaultOptions;`
### messageAttribute
the attribute read the message text from, and the setting used to "autowire".
### message
the fallback message if it can't be read from the attribute
### confirmButtonAttribute
th attribute used to read the value of the confirmation button
### confirmButtonText
the fallback text to use if ttribute is missing or empty
### cancelButtonAttribute
the attribute used to read the value of the confirmation button
### cancelButtonText
the fallback text to use if ttribute is missing or empty
Autowire
------------------------
You can autowire and watch dynamicly loaded node by using autowiring
`$.confirmDialog.autowire(messageAttributeString)` or `$.confirmDialog.autowire({ options:'here' })` or `$.confirmDialog.autowire()` leave it empty to use the defaults