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

https://github.com/zhangchenglin/bootstrap-toasts

Welcome star
https://github.com/zhangchenglin/bootstrap-toasts

Last synced: 8 months ago
JSON representation

Welcome star

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.


GitHub Release
GitHub License



NPM Version
NPM License



jsDelivr

## 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 |