Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Hi,
Based on variation type different markup will be included in component.html to render different variations – single, multiple A or multiple B. Created drop down in my dialog for these variations. On selecting that option that particular markup has to come up. How can this be done in sightly to add value for drop down options so that it'll select that particular markup.
Thank you,
Keerthana
Solucionado! Ir para a Solução.
Visualizações
respostas
Total de curtidas
Hi @keerthana_hn :
For including the html file based upon selected option, we can do like below code snippet:
<sly data-sly-test="${properties.selectedOption == 'optionA'}">
<sly data-sly-include ="optionA.html">
</sly>
<sly data-sly-test="${properties.selectedOption == 'optionB'}">
<sly data-sly-include ="optionB.html">
</sly>
Hope this helps.
@keerthana_hn Use sightly Comparison Operators to show particular markup on dropdown selection.
<div data-sly-test="${properties.jcr:title == 'true'}">TRUE</div> <div data-sly-test="${properties.jcr:title != 'true'}">FALSE</div> |
https://www.aemtutorial.info/p/htl-operators.html
Hi @keerthana_hn :
For including the html file based upon selected option, we can do like below code snippet:
<sly data-sly-test="${properties.selectedOption == 'optionA'}">
<sly data-sly-include ="optionA.html">
</sly>
<sly data-sly-test="${properties.selectedOption == 'optionB'}">
<sly data-sly-include ="optionB.html">
</sly>
Hope this helps.
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas