Answers for "angular material how to design .mat-dialog-container"

2

.mat-dialog-container

// Overlay-based components have a panelClass property (or similar) 
// that can be used to target the overlay pane.

this.dialog.open(DialogExampleComponent, { 
	panelClass: 'dialog-container-custom' 
});

// then style it from there

.dialog-container-custom .mat-dialog-container {
	padding: 0;
	background: grey;
}
Posted by: Guest on December-01-2020
0

mat dialog

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

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

Code answers related to "angular material how to design .mat-dialog-container"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language