Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.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 | */
|
---|
8 | import { MatSnackBarRef } from './snack-bar-ref';
|
---|
9 | /**
|
---|
10 | * Interface for a simple snack bar component that has a message and a single action.
|
---|
11 | */
|
---|
12 | export interface TextOnlySnackBar {
|
---|
13 | data: {
|
---|
14 | message: string;
|
---|
15 | action: string;
|
---|
16 | };
|
---|
17 | snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
|
---|
18 | action: () => void;
|
---|
19 | hasAction: boolean;
|
---|
20 | }
|
---|
21 | /**
|
---|
22 | * A component used to open as the default snack bar, matching material spec.
|
---|
23 | * This should only be used internally by the snack bar service.
|
---|
24 | */
|
---|
25 | export declare class SimpleSnackBar implements TextOnlySnackBar {
|
---|
26 | snackBarRef: MatSnackBarRef<SimpleSnackBar>;
|
---|
27 | /** Data that was injected into the snack bar. */
|
---|
28 | data: {
|
---|
29 | message: string;
|
---|
30 | action: string;
|
---|
31 | };
|
---|
32 | constructor(snackBarRef: MatSnackBarRef<SimpleSnackBar>, data: any);
|
---|
33 | /** Performs the action on the snack bar. */
|
---|
34 | action(): void;
|
---|
35 | /** If the action button should be shown. */
|
---|
36 | get hasAction(): boolean;
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.