2.0.1 • Published 1 year ago

@lukana/alerts v2.0.1

Weekly downloads
1
License
-
Repository
-
Last release
1 year ago

Lukana alerts

Alerts.

Usage

  1. Add @lukana/alerts/scss/alerts to Your style.scss file or use Your own styles.
  2. Import AlertsModule as dependency.
  3. Use somewhere in template

    <lukana-alerts></lukana-alerts>

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

  4. 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',
}
2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

3 years ago

0.9.2

3 years ago

0.9.2-1

3 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.1.0

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago