In AEM Classic UI, what is the correct and reliable client-side way (via JS in a clientlib) to make a component completely non-draggable / non-movable while keeping the rest of the page functional?
Solved! Go to Solution.
Views
Replies
Total Likes
Add this JS in a clientlib with category cq.wcm.edit:
CQ.WCM.on("editablesready", function () {
CQ.WCM.getEditables().forEach(function (e) {
if (e.type === "myproject/components/nonmovable") {
e.dragger = null; // disable dragging
e.dropTargets = []; // disable moving
}
});
});
Hope this helpful:)
Regards,
Karishma.
Views
Replies
Total Likes
You need to convert classic AEM dialog into Coral AEM dialog as per recommendation. Then you can create custom JS using coral API to hide the required tab and add JS as part of extraClientlibs in your dialog
Coral API : https://developer.adobe.com/experience-manager/reference-materials/6-5/coral-ui/coralui3/Coral.Dialo...
Hope this helps
Thanks
Views
Replies
Total Likes
Add this JS in a clientlib with category cq.wcm.edit:
CQ.WCM.on("editablesready", function () {
CQ.WCM.getEditables().forEach(function (e) {
if (e.type === "myproject/components/nonmovable") {
e.dragger = null; // disable dragging
e.dropTargets = []; // disable moving
}
});
});
Hope this helpful:)
Regards,
Karishma.
Views
Replies
Total Likes
Views
Likes
Replies