@angular/material/dialog#MatDialogConfig TypeScript Examples
The following examples show how to use
@angular/material/dialog#MatDialogConfig.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: courses-card-list.component.ts From reactive-angular-course with MIT License | 6 votes |
editCourse(course: Course) {
const dialogConfig = new MatDialogConfig();
dialogConfig.disableClose = true;
dialogConfig.autoFocus = true;
dialogConfig.width = "400px";
dialogConfig.data = course;
const dialogRef = this.dialog.open(CourseDialogComponent, dialogConfig);
dialogRef.afterClosed()
.pipe(
filter(val => !!val),
tap(() => this.coursesChanged.emit())
)
.subscribe();
}
Example #2
Source File: mail.service.ts From youpez-admin with MIT License | 6 votes |
open(params) {
this.dialogRef = null
let config = new MatDialogConfig()
config.viewContainerRef = null
config.disableClose = true
config.role = 'alertdialog'
config.width = '600px'
this.dialogRef = this.dialog.open(MailComposeComponent, config)
return this.dialogRef
}
Example #3
Source File: scrum-form.service.ts From youpez-admin with MIT License | 6 votes |
open(params) {
this.dialogRef = null
let config = new MatDialogConfig()
config.viewContainerRef = null
config.disableClose = true
config.role = 'alertdialog'
config.width = '500px'
this.dialogRef = this.dialog.open(ScrumFormComponent, config)
return this.dialogRef
}
Example #4
Source File: scrum-form.service.ts From youpez-admin with MIT License | 6 votes |
openEdit() {
this.dialogRef2 = null
let config = new MatDialogConfig()
config.viewContainerRef = null
config.disableClose = false
config.role = 'dialog'
config.width = '940px'
config.height = '650px'
this.dialogRef2 = this.dialog.open(ScrumViewComponent, config)
return this.dialogRef
}
Example #5
Source File: dialog.factory.ts From WowUp with GNU General Public License v3.0 | 5 votes |
public getDialog<T, K>(component: ComponentType<T>, config?: MatDialogConfig<K>): MatDialogRef<T, any> {
return this._dialog.open(component, config);
}