ui-notification

Generation

ng g @ngx-kit/collection:ui-notification [name]

README

Usage

  1. Import generated module into root.
...
imports: [
  ...
  UiNotificationModule.forRoot(),
],
  1. Use UiNotificationService api to show notifications.

Hammerjs

Add Hammer.JS for proper working.

Demo

PreviewSources

Default

Position

Duration

API

[class] UiNotificationDemoModule

@NgModule

[class] UiNotificationHostComponent

@Component

Selector:'ui-notification-host'

Members

SignatureDescription
items: Observable<UiNotificationItem[]>
position: Observable<UiNotificationPosition>
close(__id: string)

[class] UiNotificationService

@Injectable

Provided in:'root'

Members

SignatureDescription
get configChanges(): Observable<UiNotificationHostConfig>
get itemsChanges(): Observable<UiNotificationItem[]>
close(__id: string)
config(config: Partial<UiNotificationHostConfig>)

Configure notification service.

open(params: any)

Display notification message.