simple-snack-bar.d.ts 838 B

12345678910111213141516171819202122232425
  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. * A component used to open as the default snack bar, matching material spec.
  11. * This should only be used internally by the snack bar service.
  12. */
  13. export declare class SimpleSnackBar {
  14. snackBarRef: MatSnackBarRef<SimpleSnackBar>;
  15. /** Data that was injected into the snack bar. */
  16. data: {
  17. message: string;
  18. action: string;
  19. };
  20. constructor(snackBarRef: MatSnackBarRef<SimpleSnackBar>, data: any);
  21. /** Performs the action on the snack bar. */
  22. action(): void;
  23. /** If the action button should be shown. */
  24. readonly hasAction: boolean;
  25. }