d.close = (args) => {
// Close the dialog using close icon
if (args.isInteraction && args.event.type == "click") {
alert("Close the dialog using close icon");
}
// Close the dialog using escape key
if (args.isInteraction && args.event.type == "keydown") {
alert("Close the dialog using escape key");
}
// Close the dialog using cancel button
if (!args.isInteraction && args.name == "close") {
alert("Close the dialog using cancel button");
}
}
d.close = (args) => {
// Close the dialog using close icon
if (args.isInteraction && args.event.type == "click") {
alert("Close the dialog using close icon");
}
// Close the dialog using escape key
if (args.isInteraction && args.event.type == "keydown") {
alert("Close the dialog using escape key");
}
// Close the dialog using cancel button
if (!args.isInteraction && args.name == "close") {
alert("Close the dialog using cancel button");
}
} |