Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ToastNotificationListComponent

Component to display a list of toast notifications

Usage:

// Individual module import
import { ToastNotificationListModule } from 'patternfly-ng/notification';
// Or
import { ToastNotificationListModule } from 'patternfly-ng';

// NGX Bootstrap import { BsDropdownConfig, BsDropdownModule } from 'ngx-bootstrap/dropdown';

@NgModule({ imports: [ToastNotificationListModule, BsDropdownModule.forRoot(),...], providers: [BsDropdownConfig] }) export class AppModule(){}

Optional:

import { Notification, NotificationEvent, NotificationType } from 'patternfly-ng/notification';

Hierarchy

  • ToastNotificationListComponent

Implements

  • OnInit

Index

Constructors

constructor

Properties

notifications

notifications: Notification[]

A list of notifiactions to display

onActionSelect

onActionSelect: EventEmitter<Object> = new EventEmitter()

The event emitted when an action has been selected

onCloseSelect

onCloseSelect: EventEmitter<Object> = new EventEmitter()

The event emitted when the close button has been selected

onViewingChange

onViewingChange: EventEmitter<Object> = new EventEmitter()

The event emitted when the mouse hovers over and leaves a notification

showClose

showClose: boolean

Set to true to show close button

Methods

ngOnInit

  • ngOnInit(): void

Generated using TypeDoc