| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- import { Injector } from '@angular/core';
- /**
- * Options available when opening new modal windows with `NgbModal.open()` method.
- */
- export interface NgbModalOptions {
- /**
- * `aria-labelledby` attribute value to set on the modal window.
- *
- * @since 2.2.0
- */
- ariaLabelledBy?: string;
- /**
- * If `true`, the backdrop element will be created for a given modal.
- *
- * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click.
- *
- * Default value is `true`.
- */
- backdrop?: boolean | 'static';
- /**
- * Callback right before the modal will be dismissed.
- *
- * If this function returns:
- * * `false`
- * * a promise resolved with `false`
- * * a promise that is rejected
- *
- * then the modal won't be dismissed.
- */
- beforeDismiss?: () => boolean | Promise<boolean>;
- /**
- * If `true`, the modal will be centered vertically.
- *
- * Default value is `false`.
- *
- * @since 1.1.0
- */
- centered?: boolean;
- /**
- * A selector specifying the element all new modal windows should be appended to.
- *
- * If not specified, will be `body`.
- */
- container?: string;
- /**
- * The `Injector` to use for modal content.
- */
- injector?: Injector;
- /**
- * If `true`, the modal will be closed when `Escape` key is pressed
- *
- * Default value is `true`.
- */
- keyboard?: boolean;
- /**
- * Scrollable modal content (false by default).
- *
- * @since 5.0.0
- */
- scrollable?: boolean;
- /**
- * Size of a new modal window.
- */
- size?: 'sm' | 'lg' | 'xl' | string;
- /**
- * A custom class to append to the modal window.
- */
- windowClass?: string;
- /**
- * A custom class to append to the modal backdrop.
- *
- * @since 1.1.0
- */
- backdropClass?: string;
- }
- /**
- * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service.
- *
- * You can inject this service, typically in your root component, and customize the values of its properties in
- * order to provide default values for all modals used in the application.
- *
- * @since 3.1.0
- */
- export declare class NgbModalConfig implements Required<NgbModalOptions> {
- ariaLabelledBy: string;
- backdrop: boolean | 'static';
- beforeDismiss: () => boolean | Promise<boolean>;
- centered: boolean;
- container: string;
- injector: Injector;
- keyboard: boolean;
- scrollable: boolean;
- size: 'sm' | 'lg' | 'xl' | string;
- windowClass: string;
- backdropClass: string;
- }
|