UNPKG

ng-zorro-antd

Version:

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

25 lines (24 loc) 1.9 kB
/** * @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 { Overlay } from '@angular/cdk/overlay'; import { ApplicationRef, ComponentFactoryResolver, Injector, TemplateRef } from '@angular/core'; import { NzSingletonService } from 'ng-zorro-antd/core'; import { NzMessageBaseService } from 'ng-zorro-antd/message'; import { NzNotificationConfigLegacy } from './nz-notification-config'; import { NzNotificationContainerComponent } from './nz-notification-container.component'; import { NzNotificationData, NzNotificationDataFilled, NzNotificationDataOptions } from './nz-notification.definitions'; export declare class NzNotificationService extends NzMessageBaseService<NzNotificationContainerComponent, NzNotificationData, NzNotificationConfigLegacy> { constructor(nzSingletonService: NzSingletonService, overlay: Overlay, injector: Injector, cfr: ComponentFactoryResolver, appRef: ApplicationRef); success(title: string, content: string, options?: NzNotificationDataOptions): NzNotificationDataFilled; error(title: string, content: string, options?: NzNotificationDataOptions): NzNotificationDataFilled; info(title: string, content: string, options?: NzNotificationDataOptions): NzNotificationDataFilled; warning(title: string, content: string, options?: NzNotificationDataOptions): NzNotificationDataFilled; blank(title: string, content: string, options?: NzNotificationDataOptions): NzNotificationDataFilled; create(type: 'success' | 'info' | 'warning' | 'error' | 'blank' | string, title: string, content: string, options?: NzNotificationDataOptions): NzNotificationDataFilled; template(template: TemplateRef<{}>, options?: NzNotificationDataOptions): NzNotificationDataFilled; }