Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InlineNotificationComponent

Inline notifications can be used to provide notifications to user that can persist on the page they are also optionally dismissable by the user

Usage:

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

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

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

Optional:

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

Hierarchy

  • InlineNotificationComponent

Index

Constructors

constructor

Properties

dismissable

dismissable: boolean

Boolean to indicate whether or not notification can be dismissed

header

header: string

The notification header

hidden

hidden: boolean = false

Indicates whether or not the notification is currently hidden

hiddenChange

hiddenChange: EventEmitter<boolean> = new EventEmitter<boolean>()

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

message

message: string

The message to display within the notification

type

The notification type (e.g., NotificationType.SUCCESS, NotificationType.INFO, etc.)

Methods

notificationRemove

  • notificationRemove(): void

Generated using TypeDoc