How to display text in particular view mode
<sly data-sly-test.editor="${wcmmode.edit || wcmmode.design}"></sly>
<div id=" " class="${editor?'abcd xyz myclass':'abcd xyz'}">
........
</div>
I Found this answer but I can't use
<sly data-sly-test.editor="${wcmmode.edit || wcmmode.design}"></sly>
<div id=" " class="${editor?'abcd xyz myclass':'abcd xyz'}">
........
</div>
I Found this answer but I can't use
Which component are you referring to? Could you elaborate?
There is an option to add text as a placeholder for most components, so you can check that.
More information - https://experienceleague.adobe.com/docs/experience-manager-64/forms/adaptive-forms-basic-authoring/placeholder-text-in-aem-forms-.html?lang=en
Hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.