While working on implementing the dialog component of material2, I encountered a particular issue:
I am aiming to create a versatile dialog for all confirmation messages, allowing developers to input text based on business requirements. However, according to the documentation, there are no specific provisions for this. Is there a workaround available, or should I consider submitting it as a feature request on GitHub?
export class ConfirmationDialogComponent implements OnInit {
@Input() confirmationText: string;
@Input() confirmationTitle: string;
@Input() confirmationActions: [string, string][] = [];
constructor(public dialogRef: MdDialogRef<ConfirmationDialogComponent>) {}
ngOnInit() {}
}
Usage example:
let dialogRef = this.dialog.open(ConfirmationDialogComponent);