1.1.4 • Published 3 months ago

bootoast v1.1.4

Weekly downloads
224
License
-
Repository
github
Last release
3 months ago

NPM version NPM downloads License

Codacy Badge Maintainability

Bootoast 🔥

A Bootstrap Toaster library.

Make your toast notifications with Bootstrap 3 or 4 alerts.

Demo!

Default Settings

bootoast.toast({
    message: 'Bootoast!',
    type: 'info',
    position: 'bottom-center',
    icon: null,
    timeout: null,
    animationDuration: 300,
    dismissible: true
});

Options Settings

To use your own settings, take the default example above and replace with your values. You can also remove the keys you will not change.

OptionDefault ValueDescrition
message'Helo!'Any, any, HTML String!
type'info'A raw string that can be any of Bootstrap 3 alert type classes without the alert- preffix. Available types.
iconbased on choosen type OR undefinedAn icon following the standard Bootstrap 3 glyphicons name without the glyphicon- preffix. Icons choosen by type.
position'bottom-center'A raw string with two segments of align separated by hypehn follo0wing the pattern: vertical-horizontal. Supported positions.
timeoutfalseThe time in seconds for hide the notification (.alert element). If false or 0, the notification will not auto-hide.
dismissibletrueShows or hides the dismiss × button. It can be true or false.
animationDuration300The notification hide animation duration in milliseconds (ms).

Supported Types

By default, Bootoast supports all Bootstrap 3 alert types:

Supported Positions

SupportedSinonymus
top-centertop
top-leftleft-top
top-rightright-top
bottom-centerbottom
bottom-leftleft-bottom
bottom-rightright-bottom

Icon Defaults

By default, if it's not defined, it will turn into an icon choosen by the type:

Bootoast typeBootstrap icon
warningexclamation-sign
successok-sign
dangerremove-sign
infoinfo-sign

Versioning

Closest as possible to semver (Semantic Versioning).


Good Luck. :-)

1.1.4

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.1.3

3 months ago

1.1.2

3 months ago

1.0.1

6 years ago

1.0.1-beta.2

6 years ago

1.0.1-beta1

7 years ago

1.0.0-beta5

7 years ago

1.0.0-beta4

7 years ago

1.0.0-rc2

7 years ago

1.0.0-rc1

7 years ago

1.0.0-beta2

7 years ago