gray out component | Community
Skip to main content
July 19, 2021
Solved

gray out component

  • July 19, 2021
  • 2 replies
  • 990 views

hello all,

 

there is requirement that I want to gray out component (disable to edit component) in edit mode.

 

Thank You

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 Dipti_Chauhan

Hi @man699sr 

 Not sure about your exact requirement but if you simple want to disable editing than you can set cq:noDecoration as true at component level.

 

Thanks

Dipti

2 replies

arunpatidar
Community Advisor
Community Advisor
July 19, 2021

you can do it simply by adding decorationTag 

https://aemlab.blogspot.com/2018/11/aem-restrict-component-editing-and.html

 

you can add extra classes also if you want to add styling in edit mode

Arun Patidar
Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 19, 2021

Hi @man699sr 

 Not sure about your exact requirement but if you simple want to disable editing than you can set cq:noDecoration as true at component level.

 

Thanks

Dipti