Hi,
I want to perform an event when dialog "OK / CANCEL" button is clicked. Is there any option for doing this?
Regards,
Shobana
Hi
Please have a look at this Community article:-
Link:- https://helpx.adobe.com/experience-manager/using/creating-touchui-events.html
// This example show you "Event Handlers in Adobe Experience Manager Touch UI Components"
It as simple as:-
$document.on("dialog-closed", function() {
$(window).adaptTo("foundation-ui").alert("Close", "Dialog closed, event [dialog-closed]");
});
Reference Link 2:- http://experience-aem.blogspot.in/2015/04/aem-6-sp2-sample-datasource-touch-ui-select-listener.html
//Demo | Package Install
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Hi
Please let us know if these solution works for you.
If you have devised a new solution please share it here for communities benefit.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi Kautuk,
Links which you have shared was really helpful. I want to do the same with classic UI. For eg. If I click Cancel Button in Classic UI dialog, it need to load the current page. Which listener event can we use for it? or how wan we fetch the dialog cancel button event?
Thanks,
Shobana Pattabiraman