How can use Tabs core component and customize to each container added have an predifined Icon | Community
Skip to main content
Level 3
May 30, 2023
Solved

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

  • May 30, 2023
  • 2 replies
  • 3515 views

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 ?

Best answer by krishna_sai

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

2 replies

Fanindra_Surat
Community Advisor
Community Advisor
May 30, 2023

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

krishna_sai
Community Advisor
krishna_saiCommunity AdvisorAccepted solution
Community Advisor
May 31, 2023

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

Adobe Employee
August 30, 2024

Hi @krishna_sai ,

We are also having similar requirement.

Can you please share the js code?

Thanks in advance!!