UNPKG

1.61 kBTypeScriptView Raw
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 */
6import { InjectionToken, ViewContainerRef } from '@angular/core';
7export declare const NB_DIALOG_CONFIG: InjectionToken<NbDialogConfig<any>>;
8/**
9 * Describes all available options that may be passed to the NbDialogService.
10 * */
11export declare class NbDialogConfig<D = any> {
12 /**
13 * If true than overlay will render backdrop under a dialog.
14 * */
15 hasBackdrop: boolean;
16 /**
17 * Class that'll be assigned to the backdrop element.
18 * */
19 backdropClass: string;
20 /**
21 * Class that'll be assigned to the dialog overlay.
22 * */
23 dialogClass: string;
24 /**
25 * If true then mouse clicks by backdrop will close a dialog.
26 * */
27 closeOnBackdropClick: boolean;
28 /**
29 * If true then escape press will close a dialog.
30 * */
31 closeOnEsc: boolean;
32 /**
33 * Disables scroll on content under dialog if true and does nothing otherwise.
34 * */
35 hasScroll: boolean;
36 /**
37 * Focuses dialog automatically after open if true.
38 * */
39 autoFocus: boolean;
40 /**
41 * Where the attached component should live in Angular's *logical* component tree.
42 * This affects what is available for injection and the change detection order for the
43 * component instantiated inside of the dialog. This does not affect where the dialog
44 * content will be rendered.
45 */
46 viewContainerRef: ViewContainerRef;
47 context: D;
48 constructor(config: Partial<NbDialogConfig>);
49}