This is a notification npm package, it can be use as simple notification or modal dialog, a lot of customization option are available as well, checkout the github repo and examples
npm install biplab-notifierNotification |Notification is a class, which contain all configuration need to execute biplab-notifier
message attribute, Always remember to set layoutType as 'multi' if you want to set list of values in notices attribute otherwise it will generate error |show or hide | Change title visibility, default is show |show or hide| Change closeButton visibility, default is show |show or hide| Change actionRow visibility, default is show |show or hide| Change body visibility, default is show |#### ng-content for followling selector available
- notifierIcon
- notifierTitle
- notifierMessages
- notifierTrueButton
- notifierFalseButton
- notifierFooter
In ng-template you can access notificationClose method will close the notification and data
```
import { NotifierModule } from 'biplab-notifier `
`
@NgModule({
imports: [ BrowserModule, FormsModule, NotifierModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
`In component file import Notification from biplab-notifier and initilize it
`
// First Import Notification class
import { Notification } from 'biplab-notifier';// Declare and Initiliza the variable
notification = new Notification()
// Now for testing, add following line to see message
constructor() {
//Setup the type, it can be success, error, warn, note, or help
this.notification.type = 'success';
//Send message to display
this.notification.message = 'You will see this message with success title';
//Calling function to display message
this.notification.show();
}
`
In Template file pass current notification instance ( HTML )
`
``