source: trip-planner-front/node_modules/@angular/material/esm2015/dialog/dialog-config.js@ eed0bf8

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

initial commit

  • Property mode set to 100644
File size: 8.2 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 */
8/**
9 * Configuration for opening a modal dialog with the MatDialog service.
10 */
11export class MatDialogConfig {
12 constructor() {
13 /** The ARIA role of the dialog element. */
14 this.role = 'dialog';
15 /** Custom class for the overlay pane. */
16 this.panelClass = '';
17 /** Whether the dialog has a backdrop. */
18 this.hasBackdrop = true;
19 /** Custom class for the backdrop. */
20 this.backdropClass = '';
21 /** Whether the user can use escape or clicking on the backdrop to close the modal. */
22 this.disableClose = false;
23 /** Width of the dialog. */
24 this.width = '';
25 /** Height of the dialog. */
26 this.height = '';
27 /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
28 this.maxWidth = '80vw';
29 /** Data being injected into the child component. */
30 this.data = null;
31 /** ID of the element that describes the dialog. */
32 this.ariaDescribedBy = null;
33 /** ID of the element that labels the dialog. */
34 this.ariaLabelledBy = null;
35 /** Aria label to assign to the dialog element. */
36 this.ariaLabel = null;
37 /** Whether the dialog should focus the first focusable element on open. */
38 this.autoFocus = true;
39 /**
40 * Whether the dialog should restore focus to the
41 * previously-focused element, after it's closed.
42 */
43 this.restoreFocus = true;
44 /**
45 * Whether the dialog should close when the user goes backwards/forwards in history.
46 * Note that this usually doesn't include clicking on links (unless the user is using
47 * the `HashLocationStrategy`).
48 */
49 this.closeOnNavigation = true;
50 // TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.
51 }
52}
53//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL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