Hi All, I was trying to call js on dialog ready with $document.on("dialog-ready", function(){ alert('Its not coming here on dialog open');}
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @ajaylabade
If you want to define styling and behavior for your component, you can create a dedicated client library that defines your custom CSS/LESS and JS.
See the below code:
(function ($, $document) {
"use strict";
$document.on("dialog-ready", function() {
alert('Its coming here on dialog open');
});
})($, $(document));
Please see the screenshot below:
Hope this helps!
Thanks!
End parentheses is missing.
$(document).on("dialog-ready", function() {
alert("Ready..!!");
});
Reference: https://adapttoaem.blogspot.com/2021/02/aem-hideshow-touch-ui-dialog-fields.html
Hi @ajaylabade
If you want to define styling and behavior for your component, you can create a dedicated client library that defines your custom CSS/LESS and JS.
See the below code:
(function ($, $document) {
"use strict";
$document.on("dialog-ready", function() {
alert('Its coming here on dialog open');
});
})($, $(document));
Please see the screenshot below:
Hope this helps!
Thanks!
@ajaylabade I think if you follow @Asutosh_Jena_ steps you will be able to get this work
Views
Likes
Replies