Hey! All I have a requirement to customize button component | Community
Skip to main content
Level 3
November 27, 2023
Solved

Hey! All I have a requirement to customize button component

  • November 27, 2023
  • 1 reply
  • 547 views

I need to remove the check box from the button component. but in the dialog structure, I didn't see linkTarget filed.I'm using button/v2

 

 

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 aanchal-sikka

@anilkumar9 

Open in a new Tab is rendering from /libs/core/wcm/components/commons/editor/dialog/link/v1/link/edit/link/items/target

 

/libs/core/wcm/components/button/v2/button/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/link includes the dialog of Link component, which in turn has the checkbox.

 

If you would need to extend the button component and override the relevant fields to hide the checkbox.

1 reply

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
November 27, 2023

@anilkumar9 

Open in a new Tab is rendering from /libs/core/wcm/components/commons/editor/dialog/link/v1/link/edit/link/items/target

 

/libs/core/wcm/components/button/v2/button/cq:dialog/content/items/tabs/items/properties/items/columns/items/column/items/link includes the dialog of Link component, which in turn has the checkbox.

 

If you would need to extend the button component and override the relevant fields to hide the checkbox.

Aanchal Sikka
Level 3
November 27, 2023

Thank you