1 | import { Injector, ComponentFactoryResolver } from '@angular/core';
|
2 | import { NgbModalOptions, NgbModalConfig } from './modal-config';
|
3 | import { NgbModalRef } from './modal-ref';
|
4 | import { NgbModalStack } from './modal-stack';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class NgbModal {
|
12 | private _moduleCFR;
|
13 | private _injector;
|
14 | private _modalStack;
|
15 | private _config;
|
16 | constructor(_moduleCFR: ComponentFactoryResolver, _injector: Injector, _modalStack: NgbModalStack, _config: NgbModalConfig);
|
17 | /**
|
18 | * Opens a new modal window with the specified content and supplied options.
|
19 | *
|
20 | * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,
|
21 | * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then
|
22 | * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component.
|
23 | *
|
24 | * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.
|
25 | */
|
26 | open(content: any, options?: NgbModalOptions): NgbModalRef;
|
27 | /**
|
28 | * Returns an observable that holds the active modal instances.
|
29 | */
|
30 | get activeInstances(): import("@angular/core").EventEmitter<NgbModalRef[]>;
|
31 | /**
|
32 | * Dismisses all currently displayed modal windows with the supplied reason.
|
33 | *
|
34 | * @since 3.1.0
|
35 | */
|
36 | dismissAll(reason?: any): void;
|
37 | /**
|
38 | * Indicates if there are currently any open modal windows in the application.
|
39 | *
|
40 | * @since 3.3.0
|
41 | */
|
42 | hasOpenModals(): boolean;
|
43 | }
|