message.service.d.ts 1.4 KB

1234567891011121314151617181920212223
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Overlay } from '@angular/cdk/overlay';
  6. import { Injector } from '@angular/core';
  7. import { NzMNService } from './base';
  8. import { NzMessageContainerComponent } from './message-container.component';
  9. import { NzMessageContentType, NzMessageDataOptions, NzMessageRef, NzMessageType } from './typings';
  10. import * as i0 from "@angular/core";
  11. export declare class NzMessageService extends NzMNService<NzMessageContainerComponent> {
  12. protected componentPrefix: string;
  13. constructor(overlay: Overlay, injector: Injector);
  14. success(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
  15. error(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
  16. info(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
  17. warning(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
  18. loading(content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
  19. create(type: NzMessageType | string, content: NzMessageContentType, options?: NzMessageDataOptions): NzMessageRef;
  20. private createInstance;
  21. static ɵfac: i0.ɵɵFactoryDeclaration<NzMessageService, never>;
  22. static ɵprov: i0.ɵɵInjectableDeclaration<NzMessageService>;
  23. }