Skip to main content
Level 3
Nov 27, 2023 11:58 AM UTC
Solved

Hey! All I have a requirement to customize button component

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.
aanchal-sikka
aanchal-sikkaAccepted solution
Community Advisor
Nov 27, 2023 12:24 PM UTC

@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

2 replies

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
Nov 27, 2023 12:24 PM UTC

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

Translate
Aanchal Sikka
Level 3
Nov 27, 2023 1:37 PM UTC

Thank you

Translate