Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

gray out component

Avatar

Level 1

hello all,

 

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

 

Thank You

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

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