source: trip-planner-front/node_modules/@angular/material/esm2015/snack-bar/snack-bar-config.js@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 5.0 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 { InjectionToken } from '@angular/core';
9/** Injection token that can be used to access the data that was passed in to a snack bar. */
10export const MAT_SNACK_BAR_DATA = new InjectionToken('MatSnackBarData');
11/**
12 * Configuration used when opening a snack-bar.
13 */
14export class MatSnackBarConfig {
15 constructor() {
16 /** The politeness level for the MatAriaLiveAnnouncer announcement. */
17 this.politeness = 'assertive';
18 /**
19 * Message to be announced by the LiveAnnouncer. When opening a snackbar without a custom
20 * component or template, the announcement message will default to the specified message.
21 */
22 this.announcementMessage = '';
23 /** The length of time in milliseconds to wait before automatically dismissing the snack bar. */
24 this.duration = 0;
25 /** Data being injected into the child component. */
26 this.data = null;
27 /** The horizontal position to place the snack bar. */
28 this.horizontalPosition = 'center';
29 /** The vertical position to place the snack bar. */
30 this.verticalPosition = 'bottom';
31 }
32}
33//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic25hY2stYmFyLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9zbmFjay1iYXIvc25hY2stYmFyLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQW1CLGNBQWMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUkvRCw2RkFBNkY7QUFDN0YsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQUcsSUFBSSxjQUFjLENBQU0saUJBQWlCLENBQUMsQ0FBQztBQ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Y2FsIHBvc2l0aW9uIHRvIHBsYWNlIHRoZSBzbmFjayBiYXIuICovXG4gIHZlcnRpY2FsUG9zaXRpb24/OiBNYXRTbmFja0JhclZlcnRpY2FsUG9zaXRpb24gPSAnYm90dG9tJztcbn1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.