https://github.com/n2ref/coreui-alert
CoreUI Alert
https://github.com/n2ref/coreui-alert
Last synced: about 2 months ago
JSON representation
CoreUI Alert
- Host: GitHub
- URL: https://github.com/n2ref/coreui-alert
- Owner: n2ref
- License: mit
- Created: 2023-04-08T18:17:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-13T19:15:24.000Z (6 months ago)
- Last Synced: 2025-04-18T22:35:55.908Z (3 months ago)
- Language: JavaScript
- Homepage: https://n2ref.github.io/coreui-alert
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CoreUI Alert
**[DEMO](https://n2ref.github.io/coreui-alert)**
## Install with npm
`$ npm install coreui-alert`## Example
```html
Default
Default$('#alert-default').click(function () {
CoreUI.alert.default("Alert title", "Raw denim you probably haven't heard of them jean shorts Austin?");
});$('#confirm-default').click(function () {
CoreUI.alert.default(
"Confirm title",
"Raw denim you probably haven't heard of them jean shorts Austin?",
{
btnAcceptText: "Ok",
btnAcceptEvent: function () { console.log('Ok') },
btnRejectText: "Cancel",
btnRejectEvent: function () { console.log('Cancel') }
}
);
});```
Result
