ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
34 lines (33 loc) • 1.29 kB
TypeScript
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ChangeDetectorRef } from '@angular/core';
import { NzMessageContainerComponent } from 'ng-zorro-antd/message';
import { NzNotificationConfig } from './nz-notification-config';
import { NzNotificationDataFilled } from './nz-notification.definitions';
export declare class NzNotificationContainerComponent extends NzMessageContainerComponent {
config: Required<NzNotificationConfig>;
bottom: string | null;
/**
* @override
*/
messages: Array<Required<NzNotificationDataFilled>>;
constructor(cdr: ChangeDetectorRef, defaultConfig: NzNotificationConfig, config: NzNotificationConfig);
/**
* @override
*/
setConfig(config: NzNotificationConfig): void;
/**
* 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;
}