npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

angular-bootstrap-toasts

v1.2.0

Published

This is a copy of package created by DreyLiky

Readme

Angular Bootstrap Toasts

This library provides you with the ability to display toast notifications. It is advisable to have the bootstrap library installed for the correct display of notifications. But this is not necessary, as you can easily customize everything using your own classes.

Install

npm install angular-bootstrap-toasts --save

Demo

You can watch this demo and experiment with toasts.

Simple toast example:

Confirm toast example:

Using

All what you need is import AngularBootstrapToastsModule from 'angular-bootstrap-toasts' and add to imports of your App Module. Then you will have access to AngularBootstrapToastsService and ToastsContainerComponent.

Important!!!

Add the toast container into some component of your application (for example in app.component.html): <Angular-Bootstrap-Toasts-Container></Angular-Bootstrap-Toasts-Container> Toast notifications will be shown inside of this container!

ToastsContainer Component input paramethers:

  • Placement: PositionModel - Model for setting placement paramethers of container: angles and margins from edges;
  • Width: string - Container width in pixels (for example: 200px);
  • Classes - Classes for container customization;

Service API:

  • ToastsList$: Observable<ToastMessage[]> - Observable with array of toast messages;
  • DefaultTitle: string - Default Title value;
  • DefaultText: number - Default Text value;
  • DefaultDuration: number - Default Duration time value;
  • showSimpleToast(params: ToastMessageParams) - Show success toast message;
  • showConfirmToast(params: ToastMessageParams) - Show toast message with confirmation and decline button variants;
  • changeDefaultTitle(newTitle: string) - Change Default Title for all toasts wich not get title property from params when creating;
  • changeDefaultText(newText: string) - Change Default Text for all toasts wich not get text property from params when creating;
  • changeDefaultDuration(duration: number) - Change Default Duration for all toasts;

ToastMessageParams Interface:

  • text?: string;
  • title?: string;
  • moment?: string - Great property to show time/date or something like this (short info near title);
  • duration?: number - Time in milliseconds over which will be displayed toast;
  • showProgressLine?: boolean - Is toast will have progress line of duration time?;
  • closeByClick?: boolean - Is toast will closable by mouse click on toast block;
  • pauseDurationOnMouseEnter?: boolean - Is toast duration needs to be paused when mouse enter on toast block?;
  • progressLineClass?: string - Class of progress line;
  • iconClass?: string - Class of icon for title;
  • titleClass?: string - Class for title block of toast;
  • bodyClass?: string - Class for body block of toast;
  • toastClass?: string - Class for block of toast;
  • toolbarClass?: string - Class for toolbar block of toast;
  • closeButtonClass?: string - Class for close button;
  • toolbarItems?: ToastToolbarItems - Buttons for toast with type "confirm";