https://github.com/balasasidhar/bootstrap-alerts
Dynamic Bootstrap Alerts with Auto Dismiss feature
https://github.com/balasasidhar/bootstrap-alerts
Last synced: 3 months ago
JSON representation
Dynamic Bootstrap Alerts with Auto Dismiss feature
- Host: GitHub
- URL: https://github.com/balasasidhar/bootstrap-alerts
- Owner: balasasidhar
- License: mit
- Created: 2016-06-10T22:31:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-13T06:41:28.000Z (about 9 years ago)
- Last Synced: 2025-01-25T21:27:45.038Z (5 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bootstrap-alerts
Dynamic Bootstrap Alerts with Auto Dismiss featureUsage:
$("target_div").BSAlert(title, message, options);Params
title(required) - Alert title
mesage(required) - Alert message
options(optional)options
type - Alert type (success | info | danger | warning)display( object ) - Control alert display position
- position: css position property
- top, bottom, left, right : css valueshref (object) - Hyper links
- link
- text
- target (optional)
autoClose (boolean) : true | false;
duration (number) : duration in millisecondsExample
$("body").BSAlert("Hello World", "This is a test message",
{
type: 'success',
display: {
position: 'absolute',
bottom: '20px',
right: '20px'
},
autoClose: true,
duration: 2000
}
);Screenshot
![]()