本文整理匯總了TypeScript中@angular/material.MatDialogRef.updateSize方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript MatDialogRef.updateSize方法的具體用法?TypeScript MatDialogRef.updateSize怎麽用?TypeScript MatDialogRef.updateSize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@angular/material.MatDialogRef
的用法示例。
在下文中一共展示了MatDialogRef.updateSize方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: confirm
public confirm(title: string, message: string, customButton: string): Observable<boolean> {
let dialogRef: MatDialogRef<AppComfirmComponent>;
dialogRef = this.dialog.open(AppComfirmComponent, {disableClose: true});
dialogRef.updateSize('380px');
dialogRef.componentInstance.title = title;
dialogRef.componentInstance.message = message;
dialogRef.componentInstance.customButton = customButton;
return dialogRef.afterClosed();
}
示例2: open
public open(title: string = 'Please wait'): Observable<boolean> {
this.dialogRef = this.dialog.open(
AppLoaderComponent,
{ disableClose: true,
backdropClass: 'light-backdrop'
});
this.dialogRef.updateSize('200px');
this.dialogRef.componentInstance.title = title;
return this.dialogRef.afterClosed();
}
示例3:
this.translate.get(title).subscribe(t => {
this.dialogRef = this.dialog.open(AppLoaderComponent, {disableClose: true});
this.dialogRef.updateSize('200px', '200px');
this.dialogRef.componentInstance.title = t;
});