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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

gray out component

Man699sr
Level 1
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
Dipti_Chauhan
Correct answer by
Community Advisor
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
Arun_Patidar
Community Advisor
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

Dipti_Chauhan
Correct answer by
Community Advisor
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