Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
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



Arun Patidar

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