📜  mat-dialog-title close - 任何代码示例

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

代码示例1
const dialogRef = this.dialog.open(DialogFromMenuExampleDialog, {restoreFocus: false});

// Manually restore focus to the menu trigger since the element that
// opens the dialog won't be in the DOM any more when the dialog closes.
dialogRef.afterClosed().subscribe(() => this.menuTrigger.focus());