📜  matsnackbar 背景颜色 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:57.382000             🧑  作者: Mango

代码示例1
/*In the ts file:*/
this.snackBar.openFromComponent(SnackComponent, {
      data: {
        message: 'Hello, snackbar!'
      },
      duration: 2000,
      panelClass: ['snackbar'] /*This is the class you'll refer to*/
    });
/*In the css file:*/
.snackbar {
  background: lightgreen;
}