Skip to main content
Level 3
May 30, 2023 8:00 PM UTC
Solved

How can use Tabs core component and customize to each container added have an predifined Icon

In my dialog I can add a container and will create a tab, but is it possible to put an select field with predefined icons to author select an icon to each tab created ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
krishna_sai
krishna_saiAccepted solution
Community Advisor
May 31, 2023 7:37 AM UTC

Hi @nathanvieira , Yes it is possible.

First we need to override `core/wcm/components/commons/editor/dialog/childreneditor/v1/childreneditor`. and update childeditor.html with the custom fields that we want to add and also modify the childeditor.js logic to read the values and show up in the dialog.
Point this overridden childreneditor to our tabs component dialog containeritems.
Add your custom clientlibs to our dialog to extraclientlibs property in place of core.wcm.components.commons.editor.dialog.childreneditor.v1

 

Hope this helps,
Krishna

13 replies

Fanindra_Surat
Community Advisor
Community Advisor
May 30, 2023 10:02 PM UTC

Hi @nathanvieira ,

 

You can create a custom component inheriting the core Tabs component, and override the cq:dialog for the desired functionality. This is documented in the "Customizing Dialogs" section in the link https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/customizing.html?lang=en. 

 

Thanks,

Fani

Translate
krishna_sai
Community Advisor
krishna_saiCommunity AdvisorAccepted solution
Community Advisor
May 31, 2023 7:37 AM UTC

Hi @nathanvieira , Yes it is possible.

First we need to override `core/wcm/components/commons/editor/dialog/childreneditor/v1/childreneditor`. and update childeditor.html with the custom fields that we want to add and also modify the childeditor.js logic to read the values and show up in the dialog.
Point this overridden childreneditor to our tabs component dialog containeritems.
Add your custom clientlibs to our dialog to extraclientlibs property in place of core.wcm.components.commons.editor.dialog.childreneditor.v1

 

Hope this helps,
Krishna

Translate
Level 3
Jun 9, 2023 12:22 PM UTC

Can you show me your code to override childreneditor and js logic please? I can't display the same result in Touch UI and I don't understand why 

Translate
Aug 14, 2023 8:18 AM UTC

Hai @nathanvieira  did you got the solution , i too have the same requirement ,it will be helpful to me if you provide what you got

Translate