source: trip-planner-front/node_modules/@angular/material/snack-bar/snack-bar-config.d.ts@ 6a80231

Last change on this file since 6a80231 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 { ViewContainerRef, InjectionToken } from '@angular/core';
9import { AriaLivePoliteness } from '@angular/cdk/a11y';
10import { Direction } from '@angular/cdk/bidi';
11/** Injection token that can be used to access the data that was passed in to a snack bar. */
12export declare const MAT_SNACK_BAR_DATA: InjectionToken<any>;
13/** Possible values for horizontalPosition on MatSnackBarConfig. */
14export declare type MatSnackBarHorizontalPosition = 'start' | 'center' | 'end' | 'left' | 'right';
15/** Possible values for verticalPosition on MatSnackBarConfig. */
16export declare type MatSnackBarVerticalPosition = 'top' | 'bottom';
17/**
18 * Configuration used when opening a snack-bar.
19 */
20export declare class MatSnackBarConfig<D = any> {
21 /** The politeness level for the MatAriaLiveAnnouncer announcement. */
22 politeness?: AriaLivePoliteness;
23 /**
24 * Message to be announced by the LiveAnnouncer. When opening a snackbar without a custom
25 * component or template, the announcement message will default to the specified message.
26 */
27 announcementMessage?: string;
28 /**
29 * The view container that serves as the parent for the snackbar for the purposes of dependency
30 * injection. Note: this does not affect where the snackbar is inserted in the DOM.
31 */
32 viewContainerRef?: ViewContainerRef;
33 /** The length of time in milliseconds to wait before automatically dismissing the snack bar. */
34 duration?: number;
35 /** Extra CSS classes to be added to the snack bar container. */
36 panelClass?: string | string[];
37 /** Text layout direction for the snack bar. */
38 direction?: Direction;
39 /** Data being injected into the child component. */
40 data?: D | null;
41 /** The horizontal position to place the snack bar. */
42 horizontalPosition?: MatSnackBarHorizontalPosition;
43 /** The vertical position to place the snack bar. */
44 verticalPosition?: MatSnackBarVerticalPosition;
45}
Note: See TracBrowser for help on using the repository browser.