You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { MatSnackBarRef } from './snack-bar-ref';
|
|
/**
|
|
* Interface for a simple snack bar component that has a message and a single action.
|
|
*/
|
|
import * as ɵngcc0 from '@angular/core';
|
|
export interface TextOnlySnackBar {
|
|
data: {
|
|
message: string;
|
|
action: string;
|
|
};
|
|
snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
|
|
action: () => void;
|
|
hasAction: boolean;
|
|
}
|
|
/**
|
|
* A component used to open as the default snack bar, matching material spec.
|
|
* This should only be used internally by the snack bar service.
|
|
*/
|
|
export declare class SimpleSnackBar implements TextOnlySnackBar {
|
|
snackBarRef: MatSnackBarRef<SimpleSnackBar>;
|
|
/** Data that was injected into the snack bar. */
|
|
data: {
|
|
message: string;
|
|
action: string;
|
|
};
|
|
constructor(snackBarRef: MatSnackBarRef<SimpleSnackBar>, data: any);
|
|
/** Performs the action on the snack bar. */
|
|
action(): void;
|
|
/** If the action button should be shown. */
|
|
get hasAction(): boolean;
|
|
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<SimpleSnackBar, never>;
|
|
static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", never, {}, {}, never, never>;
|
|
}
|
|
|
|
//# sourceMappingURL=simple-snack-bar.d.ts.map
|