Hi there,
I am new to outsystems. Have done the basic trainig but I still struggle with simple questions. I appreciate if anyone can help me here.
I attach the OML file for reference.
I would like to have the children accordion not "nested" within the parent accordion but in-line with the parents. Also, it should only (!) expand when the button is pressed.
Thanks in advance
Christian
Hi Dude,
To have the child accordions not nested within the parent accordion and only expand when the button is pressed in OutSystems, you can consider the following steps:
1. Create a parent container, such as a container block, for each parent accordion.
2. Within each parent container, add a button that will act as the toggle for the accordion.
3. Next, create a child container within each parent container to hold the content of the child accordion.
4. Use JavaScript or OutSystems UI actions to show or hide the child container when the button is clicked. You can also add animations or styling to create the accordion effect.
Repeat the process for each parent-child accordion pair.
Note: The exact implementation will depend on the specifics of your OutSystems application and how it's structured.
Thank you Shubbam, I appreciate it.
I will try that. Can you maybe direct me to a tutorial or an example OML file that could help to understand how this is done best?
Hello,
Check if you are expecting like this. If so please refer to the OML to achieve this. Here in this concept you need to add a calculated attribute to the Parents aggegate since the expand is happening for each row. Please let me know if you need to understand it more I can provide an explanation how I have acheived it. I hope this helps!!
Regards,
Shree
Hi Shree,
Thank you, that is very kind and helpful.
But it is not the result I wanted. I would like to have the children on the same style as the parents not "nested". The java script toggle sounds like a good idea but I have to figure out how that works.
Thanks again