Expand my Community achievements bar.

SOLVED

cq-dialog add tabs dynamically

Avatar

Level 1

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

thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-mer...

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!

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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-mer...

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!

Avatar

Community Advisor

Hello @mario97 

 

Requesting you to please more details about the requirement.


Aanchal Sikka