https://github.com/zhangchenglin/bootstrap-toasts
Welcome star
https://github.com/zhangchenglin/bootstrap-toasts
Last synced: 8 months ago
JSON representation
Welcome star
- Host: GitHub
- URL: https://github.com/zhangchenglin/bootstrap-toasts
- Owner: ZhangChengLin
- License: mit
- Created: 2019-03-04T16:12:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T02:56:10.000Z (over 4 years ago)
- Last Synced: 2025-07-07T00:08:41.709Z (11 months ago)
- Language: JavaScript
- Homepage: https://zhangchenglin.github.io/bootstrap-toasts/demo.html
- Size: 116 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This package has been deprecated
# NEW
# [https://www.npmjs.com/package/b-components-js](https://www.npmjs.com/package/b-components-js)
---
---
## bootstrap-toasts
**Beta time**
Bootstrap components "Toasts"
Currently relying on Bootstrap and jQuery environments, because it is a function extension of Bootstrap.
Supports arbitrary calls of ten parameters, supports callback functions based on toasts events.
## Demo
https://zhangchenglin.github.io/bootstrap-toasts/demo.html
## How to install?
```
npm install bootstrap-toasts --save
```
## CDN
- **jsDelivr**
```
```
```
```
## How to use it?
```
bootstrapToasts(title, content, titleColor, delay, position, releaseTime, icon, eventType, eventFunction, ariaType)
```
## Parameter Description
- **title**
Type:String
Default value:undefined
Description:
---
- **content**
Type:String
Default value:undefined
Description:
---
- **titleColor**
Type:String
Default value:
Description:
| parameter|
| :-------:|
| primary |
| secondary|
| success |
| danger |
| warning |
| info |
| dark |
---
- **delay**
Type:Number
Default value:10
Unit:second
Description:
min value: 1 max value: any
| parameter | similar code |
| :-------: | :---------- |
| 1 | ```
``` |
| 2 | `````` |
| 3 | `````` |
| ... | ```...``` |
---
- **position**
Type:String
Default value:
Description:
| parameter |
| :-----------: |
| topLeft |
| topCenter |
| topRight |
| bottomLeft |
| bottomCenter |
| bottomRight |
| center |
---
- **releaseTime**
Type:String
Default value:
Description:
---
- **icon**
Type:String
Default value:undefined
Description:
| parameter |
| :-------: |
| success |
| danger |
| warning |
| info |
- **eventType**
Type:String
Default value:undefined
Description:
eventType and eventFunction must exist at the same time, otherwise the event function will be invalid.
| parameter |
| :-------: |
| show |
| shown |
| hide |
| hidden |
- **eventFunction**
Type:Function
Default value:undefined
Description:
eventType and eventFunction must exist at the same time, otherwise the event function will be invalid.
- **ariaType**
Type:String
Default value:alert
Description:
| parameter |
| :-------: |
| alert |
| status |