Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Hello I am new to AEM, and Sightly. I have a questions regarding, Sightly and AEM.
So I have created a component that display data based on the 2 inputs, when I drag-and-drop the component to the page I am looking for initial TEXT to appear and then when I double click and edit the component that text will disappear.
Thank you ahead of time,
-T
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
You can check to see if a property exists and display default text if it does not.
<h1>${properties.text ? properties.text : 'Use Dialog to Enter Text'}</h1>Edit:
This can actually be achieved with less code.
<h1>${properties.text || 'Use Dialog to Enter Text'}</h1>
Vistas
Respuestas
Total de me gusta
You can check to see if a property exists and display default text if it does not.
<h1>${properties.text ? properties.text : 'Use Dialog to Enter Text'}</h1>Edit:
This can actually be achieved with less code.
<h1>${properties.text || 'Use Dialog to Enter Text'}</h1>
Vistas
Respuestas
Total de me gusta
Hi Tony,
I presume you are looking for default or initial text in dialog box textfield. You can use emptyText
Vistas
Respuestas
Total de me gusta
I have used emptyText and defautlValue and nothing worked. The above comment from leeasling, worked perfectly.
Vistas
Respuestas
Total de me gusta
leeasling wrote...
You can check to see if a property exists and display default text if it does not.
<h1>${properties.text ? properties.text : 'Use Dialog to Enter Text'}</h1>
Worked perfectly. Thank you a quick response.
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas