Angular2 Material Dialog css, dialog size

前端 未结 11 976
甜味超标
甜味超标 2020-12-25 10:52

Angular2 material team recently released the MDDialog https://github.com/angular/material2/blob/master/src/lib/dialog/README.md

I\'d like to change the looking and f

11条回答
  •  我在风中等你
    2020-12-25 11:24

    sharing the latest on mat-dialog two ways of achieving this... 1) either you set the width and height during the open e.g.

    let dialogRef = dialog.open(NwasNtdSelectorComponent, {
        data: {
            title: "NWAS NTD"
        },
        width: '600px',
        height: '600px',
        panelClass: 'epsSelectorPanel'
    });
    

    or 2) use the panelClass and style it accordingly.

    1) is easiest but 2) is better and more configurable.

提交回复
热议问题