How to remove "edit bar" of a component using code
I had a requirement in which I needed to hide "edit bar" in authoring mode based on some condition .
I am using this code snippet "componentContext.setDecorate(Boolean.FALSE)" .
Issue caused is sometimes it is removing "edit bar" always in authoring mode apart from that condition also . Anyone faced this situation before and what may be other best practices to handle show/hide of editbar on basis of some condition .
Regards
