public showApplicationsMessage(message, type): MatDialogRef<ApplicationMessageDialog> {
const dialogRef = this.dialog.open(ApplicationMessageDialog, {
panelClass: 'mat-dialog-container-custom', //CSS for the dialog box
width: '40%',
height: '25%',
data: {
title: "Message",
message: message,
type: type
}
});
return dialogRef;
}
这是调用对话框的功能。我想在标题中输入图标以及“消息”。