ng-zorro-antd-mobile
Version:
An enterprise-class mobile UI components based on Ant Design and Angular
22 lines (21 loc) • 1.25 kB
TypeScript
import { ComponentRef, ComponentFactory, ApplicationRef, Compiler, TemplateRef, ComponentFactoryResolver } from '@angular/core';
import { ModalComponent } from './modal.component';
import { BaseOptions } from './modal-options.provider';
export declare class Modal {
private _appRef;
private _compiler;
private _cfr;
static compRef: ComponentRef<any>;
static _modalCompFactory: ComponentFactory<ModalComponent>;
static appRef: ApplicationRef;
static instance: any;
constructor(_appRef: ApplicationRef, _compiler: Compiler, _cfr: ComponentFactoryResolver);
static _initConfig(config: BaseOptions, options: any): BaseOptions;
static _open(props: BaseOptions, factory: ComponentFactory<any>): any;
static closeWithAnimation(): void;
static open(config: BaseOptions): any;
static alert(title?: string | TemplateRef<any>, message?: string | TemplateRef<any>, actions?: Array<any>, platform?: string): any;
static prompt(title?: string | TemplateRef<any>, message?: string | TemplateRef<any>, callbackOrActions?: any, type?: string, defaultValue?: string, placeholders?: Array<any>, platform?: string): any;
static operation(actions?: any, platform?: string): any;
static close(): void;
}