New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@lukana/alerts

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lukana/alerts

Alerts.

latest
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

Lukana alerts

Alerts.

Usage

  • Add @lukana/alerts/scss/alerts to Your style.scss file or use Your own styles.

  • Import AlertsModule as dependency.

  • Use somewhere in template

    <lukana-alerts></lukana-alerts>
    

    You can provide [position] attribute which is of type AlertsPosition. Default is top-right

  • To print alert use AlertsService with one of these

    AlertsService.addSuccess('Success');
    AlertsService.addError('Error', 0);
    AlertsService.addInfo('Info');
    AlertsService.addWarning('Warning', 2000);
    

    As second param You can provide closeTime in miliseconds - default: 4000. If You give 0 it won't be closed automagically.

Positions

export enum AlertsPosition {
  TopRight = 'top-right',
  BottomRight = 'bottom-right',
  BottomLeft = 'bottom-left',
  TopLeft = 'top-left',
  TopFullWidth = 'top-full-width',
  BottomFullWidth = 'bottom-full-width',
}

Keywords

alerts

FAQs

Package last updated on 09 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts