Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 747 Bytes

snackbar-content.component.md

File metadata and controls

29 lines (22 loc) · 747 Bytes
Title Added Status Last reviewed
Snackbar Content Component
v5.1.0
Active
2022-11-08

Custom content for Snackbar which allows use icon as action.

Basic Usage

snackBar.openFromComponent(SnackbarContentComponent, {
    data: {
        message: 'Some message',
        actionLabel: "Some action label",
        showAction: true
    }
});

Class members

Details

Snackbar allows using action as string by default which causes that there is no possibility to use mat-icon inside snackbar's content. That custom content for Angular material Snackbar allows for that.