Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142584 | Feb 11,2019 09:58 AM UTC | Feb 13,2019 10:22 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Dialog |
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");
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.