source: trip-planner-front/node_modules/@angular/material/bottom-sheet/bottom-sheet-ref.d.ts@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { OverlayRef } from '@angular/cdk/overlay';
9import { Observable } from 'rxjs';
10import { MatBottomSheetContainer } from './bottom-sheet-container';
11/**
12 * Reference to a bottom sheet dispatched from the bottom sheet service.
13 */
14export declare class MatBottomSheetRef<T = any, R = any> {
15 private _overlayRef;
16 /** Instance of the component making up the content of the bottom sheet. */
17 instance: T;
18 /**
19 * Instance of the component into which the bottom sheet content is projected.
20 * @docs-private
21 */
22 containerInstance: MatBottomSheetContainer;
23 /** Whether the user is allowed to close the bottom sheet. */
24 disableClose: boolean | undefined;
25 /** Subject for notifying the user that the bottom sheet has been dismissed. */
26 private readonly _afterDismissed;
27 /** Subject for notifying the user that the bottom sheet has opened and appeared. */
28 private readonly _afterOpened;
29 /** Result to be passed down to the `afterDismissed` stream. */
30 private _result;
31 /** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
32 private _closeFallbackTimeout;
33 constructor(containerInstance: MatBottomSheetContainer, _overlayRef: OverlayRef);
34 /**
35 * Dismisses the bottom sheet.
36 * @param result Data to be passed back to the bottom sheet opener.
37 */
38 dismiss(result?: R): void;
39 /** Gets an observable that is notified when the bottom sheet is finished closing. */
40 afterDismissed(): Observable<R | undefined>;
41 /** Gets an observable that is notified when the bottom sheet has opened and appeared. */
42 afterOpened(): Observable<void>;
43 /**
44 * Gets an observable that emits when the overlay's backdrop has been clicked.
45 */
46 backdropClick(): Observable<MouseEvent>;
47 /**
48 * Gets an observable that emits when keydown events are targeted on the overlay.
49 */
50 keydownEvents(): Observable<KeyboardEvent>;
51}
Note: See TracBrowser for help on using the repository browser.