Hi Fernando,
Greetings from Syncfusion support.
You will be able to retrieve the data when you click the
Dialog OK button, as shown in the code below.
public onOpenDialog = function (event: any): void {
var data: any = { id: 1, intera: true };
this.DialogObj = DialogUtility.confirm({
title: 'Confirmation Dialog',
content: 'This is a Confirmation Dialog!',
okButton: { text: 'OK', click: this.okClick.bind(this, data) },
showCloseIcon: true,
closeOnEscape: true,
animationSettings: { effect: 'Zoom' },
});
};
okClick(data, event) {
console.log(data);
this.DialogObj.hide();
}
|
Sample: https://stackblitz.com/edit/angular-lutbg6?file=src%2Fapp.component.ts,src%2Fapp.component.html
Regards,
Buvana S