* // 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';
*
*/
@Component({
encapsulation: ViewEncapsulation.None,
selector: 'pfng-inline-notification',
templateUrl: './inline-notification.component.html'
})
export class InlineNotificationComponent {
/**
* The notification type (e.g., NotificationType.SUCCESS, NotificationType.INFO, etc.)
*/
@Input() type: NotificationType;
/**
* The message to display within the notification
*/
@Input() message: string;
/**
* The notification header
*/
@Input() header: string;
/**
* Boolean to indicate whether or not notification can be dismissed
*/
@Input() dismissable: boolean;
/**
* Indicates whether or not the notification is currently hidden
*/
@Input() hidden: boolean = false;
/**
* The event emitted when the mouse hovers over and leaves a notification
*/
@Output('hiddenChange') hiddenChange = new EventEmitter