cq-dialog add tabs dynamically | Community
Skip to main content
New Participant
July 7, 2023
Solved

cq-dialog add tabs dynamically

  • July 7, 2023
  • 3 replies
  • 1142 views

How do I in my cq-dialog component add a option to the configurator add a tab?

thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DPrakashRaj

Yes, In Touch UI , there is resourceType "granite/ui/components/foundation/include" which is equivalent of cq include of classic UI.

create node in aem that needs to be included in each dialog and include it on all components and you can use sling:order before to align it after some tab in your component.

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-merger.html?lang=en

Same as classic UI , there is path property whose value is equal to the path which you want to reuse. For ex: you want to reuse the dialog part "/apps/myproject/components/component1/content/items/tabs/items/advanced" then this is the value to be used for path property.

Hope this helps!

3 replies

aanchal-sikka
New Participant
July 9, 2023

Hello @mario97 

 

Requesting you to please more details about the requirement.

Aanchal Sikka
DPrakashRaj
DPrakashRajAccepted solution
New Participant
July 7, 2023

Yes, In Touch UI , there is resourceType "granite/ui/components/foundation/include" which is equivalent of cq include of classic UI.

create node in aem that needs to be included in each dialog and include it on all components and you can use sling:order before to align it after some tab in your component.

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-merger.html?lang=en

Same as classic UI , there is path property whose value is equal to the path which you want to reuse. For ex: you want to reuse the dialog part "/apps/myproject/components/component1/content/items/tabs/items/advanced" then this is the value to be used for path property.

Hope this helps!

Tanika02
New Participant
July 7, 2023