on 12-21-2023 9:33 AM
Hi Team,
There are two fragements in the page. Based on the button action, I have to enable only one fragment at the time.
How can we achieve it?
<Page id="page" title="{i18n>title}">
<core:Fragment id="idCallFrag" fragmentName="ztestfr.fragment.Dialog" type="XML"/>
<core:Fragment id="idCallFrag2" fragmentName="ztestfr.fragment.Dialog2" type="XML"/>
</Page>
Regards,
Tamilselvan
Hello tamilselvanm,
As mentioned by Saad. Use visibility option to toggle between the fragments
<Page id="page" title="{i18n>title}">
<core:Fragment visible="{/ActionA}" id="idCallFrag" fragmentName="ztestfr.fragment.Dialog" type="XML"/>
<core:Fragment visible="{= !${/ActionA}} "id="idCallFrag2" fragmentName="ztestfr.fragment.Dialog2" type="XML"/>
</Page>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello tamilselvanm
https://plnkr.co/edit/8DIO4dEgjeYCi0yj
PS : Mark as solution provided if the case is solved. So we can close it. Thank you
Srinivas
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.