August 14, 2022

Angular ngx Bootstrap Alerts As Notifications Plugin

ngx bootstrap alert notification is an Angular component for creating notification popups using Bootstrap alert components.

angular alert popup, angular alert dialog, ng bootstrap alert, angular alert popup example, angular material alerts, angular alert box

How to make use of it:

Installation:

$ npm install @benevideschissanga/ngx-bootstrap-alert-notification --save

To use ngx-bootstrap-alert-notification.

this.notificationService.show(
  {
    type: 'danger',
    message:
      'This is a notification with close button and icon and can have many lines.',
    icon: 'icon icon-bell-55',
    title: 'Danger',
  },
  {
    position: 'topRight',
  }
)

NotificationData

Property NameProperty TypeProperty Value
typeNotificationTypewarningsuccessprimaryinfodanger
titlestringTitle for the alert
iconstringIcon class name
messagestringMessage to display
templateTemplateRefCustom template

NotificationConfig

You can pass custom configs

Property NameProperty TypeProperty Value
positionstringtopLefttopCentertopRightbottomLeftbottomCenterbottomRight
animationbooleanShould be animated or not
timeOutnumberDelay time to auto close the alert
dismissiblebooleanShould auto close or not
uniquebooleanDont show duplicated messages if true

ngx bootstrap alert notification Plugin/Github


See Demo And Download

Official Website(BenevidesLecontes): Click Here

This superior jQuery/javascript plugin is developed by BenevidesLecontes. For extra Advanced usage, please go to the official website.

Share

You may also like...

Leave a Reply

Your email address will not be published.