1 | /**
|
2 | * @license
|
3 | * Copyright Akveo. All Rights Reserved.
|
4 | * Licensed under the MIT License. See License.txt in the project root for license information.
|
5 | */
|
6 | import { ComponentRef } from '@angular/core';
|
7 | import { Observable, Subject } from 'rxjs';
|
8 | import { NbOverlayRef } from '../cdk/overlay/mapping';
|
9 | /**
|
10 | * The `NbDialogRef` helps to manipulate dialog after it was created.
|
11 | * The dialog can be dismissed by using `close` method of the dialogRef.
|
12 | * You can access rendered component as `content` property of the dialogRef.
|
13 | * `onBackdropClick` streams click events on the backdrop of the dialog.
|
14 | * */
|
15 | export declare class NbDialogRef<T> {
|
16 | protected overlayRef: NbOverlayRef;
|
17 | componentRef: ComponentRef<T>;
|
18 | /**
|
19 | * Stream of backdrop click events.
|
20 | * */
|
21 | readonly onBackdropClick: Observable<MouseEvent>;
|
22 | protected onClose$: Subject<any>;
|
23 | readonly onClose: Observable<any>;
|
24 | constructor(overlayRef: NbOverlayRef);
|
25 | /**
|
26 | * Hides dialog.
|
27 | * */
|
28 | close(res?: any): void;
|
29 | }
|