GithubHelp home page GithubHelp logo

zhangchenglin / bootstrap-toasts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 119 KB

Welcome star

Home Page: https://zhangchenglin.github.io/bootstrap-toasts/demo.html

License: MIT License

JavaScript 100.00%

bootstrap-toasts's Introduction

This package has been deprecated

NEW



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
<script src="https://cdn.jsdelivr.net/npm/bootstrap-toasts/dist/bootstrap-toasts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-toasts/dist/bootstrap-toasts.min.js"></script>

How to use it?

<script src="/bootstrap-toasts.min.js"></script>

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 <div class="toast" data-delay="1000"></div>
2 <div class="toast" data-delay="2000"></div>
3 <div class="toast" data-delay="3000"></div>
... ...

  • 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

bootstrap-toasts's People

Contributors

zhangchenglin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.