bla*_*ord 1 angular-material2 angular
我可以在Angular Material 2中设置底片的宽度(固定或百分比)吗?
非常感谢
使用panelClassconfig参数.例如:
在styles.css:(全局样式文件而不是component.css文件)
.custom-width {
width: 450px;
}
Run Code Online (Sandbox Code Playgroud)
In your component.ts:
this.bottomSheet.open(BottomSheetOverviewExampleSheet, {
panelClass: 'custom-width'
});
Run Code Online (Sandbox Code Playgroud)
https://stackblitz.com/angular/qvokqxjgbrn
注意:只有像素宽度才有效.
| 归档时间: |
|
| 查看次数: |
2265 次 |
| 最近记录: |