Answers for "dialog mat angular"

1

mat dialog

@Component({/* ... */})
export class YourDialog {
  constructor(public dialogRef: MatDialogRef<YourDialog>) { }

  closeDialog() {
    this.dialogRef.close('Pizza!');
  }
}
Posted by: Guest on April-21-2021
0

Angular p-dialog

Useful example with all properties here

https://www.geeksforgeeks.org/angular-primeng-dialog-component/
Posted by: Guest on March-23-2022
0

dialogue angular material

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());
Posted by: Guest on January-14-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language