An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# bootstrap-alerts
Dynamic Bootstrap Alerts with Auto Dismiss feature

Usage:


$("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 values

href (object) - Hyper links
- link
- text
- target (optional)

autoClose (boolean) : true | false;
duration (number) : duration in milliseconds

Example


$("body").BSAlert("Hello World", "This is a test message",
{
type: 'success',
display: {
position: 'absolute',
bottom: '20px',
right: '20px'
},
autoClose: true,
duration: 2000
}
);

Screenshot