Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

increase size of mat dialog

const dialogRef = this.dialog.open(OpenedDialogComponent, {
      width: '98vw', //sets width of dialog
      height:'70vh', //sets width of dialog
      maxWidth: '100vw', //overrides default width of dialog
      maxHeight: '100vh', //overrides default height of dialog
      disableClose: true //disables closing on clicking outside box. You will need to make a dedicated button to close
    });
 
PREVIOUS NEXT
Tagged: #increase #size #mat #dialog
ADD COMMENT
Topic
Name
4+9 =