UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

21 lines (20 loc) 952 B
import { ChangeDetectorRef } from '@angular/core'; import { NzMessageContainerComponent } from '../message/nz-message-container.component'; import { NzNotificationConfig } from './nz-notification-config'; import { NzNotificationDataFilled } from './nz-notification.definitions'; export declare class NzNotificationContainerComponent extends NzMessageContainerComponent { constructor(cdr: ChangeDetectorRef, defaultConfig: NzNotificationConfig, config: NzNotificationConfig); /** * A list of notifications displayed on the screen. * @override */ messages: NzNotificationDataFilled[]; /** * Create a new notification. * If there's a notification whose `nzKey` is same with `nzKey` in `NzNotificationDataFilled`, replace its content instead of create a new one. * @override * @param notification */ createMessage(notification: NzNotificationDataFilled): void; private replaceNotification; }