Highlighted

How to hide/show tabs in Coral 3 Touch UI dialog — Adobe Experience Manager(AEM) | AEM Community Blog Seeding

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

961

Correct Answer

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

961

Correct Answer

1.1K
kautuk_sahni
Community Manager

28-06-2020

BlogImage.jpg

How to hide/show tabs in Coral 3 Touch UI dialog — Adobe Experience Manager(AEM) by techforum

Abstract

This tutorial explains the approach to hide and show the tabs in Coral 3 Touch UI dialog.
Define Dialog

As a first step, define a Coral UI 3 Touch UI dialog (cq:dialog) with tabs and other required fields.

Define the Event Listener
Let us now define a even listener that will hide and show the tabs as required.
Define a cq:ClientLibraryFolder node under the component with the name clientlibs and add the below properties.
categories (String[]) —  e.g customvalidation

This script hide the second tab(Column1) on dialog load and shows the tab on the change event of the drop down with class name .presets

(function (document, $, Coral) {var $doc = $(document);$doc.on('foundation-contentloaded', function(e) {var coralTab = $(".tabtest coral-tablist coral-tab");
coralTab[1].hide();console.log(coralTab[1].get);$('.presets', e.target).each(function (i, element) {Coral.commons.ready(element, function (component) {$(component).on("change",function (event) {var coralTab = $(".tabtest coral-tablist coral-tab");
coralTab[1].show();});});});});
})(document, Granite.$, Coral);

Read Full Blog

How to hide/show tabs in Coral 3 Touch UI dialog — Adobe Experience Manager(AEM)

Q&A

Please use this thread to ask the related questions.

AEM AEMEBlogSeeding Experience Manager