ng2-pnotify
A service wrapping PNotify for ng2.
Install
npm i -s ng2-pnotify
Usage
First, bootstrap the service globally:
; ;
Next, inject it into a component:
; @ static { return PNotifyService; } { thispnotify = pnotify; } { thispnotify; }
Options
Name | Default | Description |
---|---|---|
styling | 'brighttheme' | The theme for pnotify to use. Valid settings are 'brighttheme', 'jqueryui', 'fontawesome', 'bootstrap3' - you must have the corresponding CSS for each of these. |
Functions
Name | Description |
---|---|
success | Creates a success dialog. |
notice | Creates a notice dialog. |
error | Creates an error dialog. |
info | Creates an info dialog. |
pnotify | Creates a custom dialog. |
desktop | Requests permission to use desktop mode. |
TODO
Wrappers for more functions, like prompts, modals, confirms.