Robust, plug & play generator for Bootstrap toasts.
MIT License
Bot releases are hidden (Show)
You read that right, Bootstrap Toaster can finally be imported as an ESM module!
For example, the following will allow you to use the Toast class and the enums for status, placement, theme, and timers.
import { Toast, TOAST_STATUS } from "bootstrap-toaster";
bootstrap
variable that I use, but I'm sure many would rather go all-in on modules.import * as bootstrap from "bootstrap";
...
window.bootstrap = bootstrap;
If you know how I could accomplish this better without the above quirks, please reach out! I used rollup.js to build the UMD and ESM modules, and this whole process is very new to me.
Published by PeytonRG about 3 years ago
Published by PeytonRG about 3 years ago
Published by PeytonRG over 3 years ago
With Bootstrap 5 officially released, version 5.0.0 is ready to fly as well! This release includes huge changes over version 3.0.0, listed below. If you are on Bootstrap 4, I recommend version 4.x, which was created by porting this release to Bootstrap 4.
TOAST_PLACEMENT.TOP_LEFT
TOAST_PLACEMENT.TOP_CENTER
TOAST_PLACEMENT.TOP_RIGHT
TOAST_PLACEMENT.MIDDLE_LEFT
TOAST_PLACEMENT.MIDDLE_CENTER
TOAST_PLACEMENT.MIDDLE_RIGHT
TOAST_PLACEMENT.BOTTOM_LEFT
TOAST_PLACEMENT.BOTTOM_CENTER
TOAST_PLACEMENT.BOTTOM_RIGHT
TOAST_POSITION
-> TOAST_PLACEMENT
Toast.setPosition
-> Toast.setPlacement
Published by PeytonRG over 3 years ago
Updated Bootstrap Icons minimum version to 1.4.0, which fixes vertical icon alignment.
Published by PeytonRG over 3 years ago
No code changes in this release, but many updates to the README
and package.json files for npm.
Published by PeytonRG over 3 years ago
This version is designed to back-port improvements made from version 5.0.0 to Bootstrap 4. As such, its features code improvements from that version while maintaining full compatibility with Bootstrap 4. Unlike previous versions, 4 and 5 will both be maintained as current releases.
TOAST_PLACEMENT.TOP_LEFT
TOAST_PLACEMENT.TOP_CENTER
TOAST_PLACEMENT.TOP_RIGHT
TOAST_PLACEMENT.MIDDLE_LEFT
TOAST_PLACEMENT.MIDDLE_CENTER
TOAST_PLACEMENT.MIDDLE_RIGHT
TOAST_PLACEMENT.BOTTOM_LEFT
TOAST_PLACEMENT.BOTTOM_CENTER
TOAST_PLACEMENT.BOTTOM_RIGHT
TOAST_POSITION
-> TOAST_PLACEMENT
Toast.setPosition
-> Toast.setPlacement
Published by PeytonRG almost 4 years ago
bootstrap-toaster
on npm rather than the previous bootstrap-toast.js
. All old versions of the old package will be deprecated on npm.bootstrap-toast.css
-> bootstrap-toaster.css
bootstrap-toast.js
-> bootstrap-toaster.js
Published by PeytonRG about 4 years ago
Deprecated v1 API
Published by PeytonRG over 4 years ago
This is the version of 1.0.9 published to npm.
Published by PeytonRG over 4 years ago
Published by PeytonRG over 4 years ago
Updated README
Published by PeytonRG over 4 years ago
Added documentation to the project and updated a few comments. No code changes from Beta 1.2.3, but this project is finally ready to fly!