Hi All,
I have one requirement. that in one list record have multiple accordion and particular accordion have some content.
What I need once user click on Particular accordion content action once it complete it will close automatic.
I used some js code but it is not helpful
Thanks in advance.
Amogh
Hi Amogh,
Use Benjit Solution, it is nice solution for your problem.
Regards
Rahul
If you are working with a reactive app, you can open or close an AccordionItem by changing the value of the property isExpanded, using a boolean variable.
You can create an action to control the value of the boolean variable used to open or close your AccordionItem and set it in the AccordionItem's onToogle event and use a similar assign in your Button.
Hope it helps!
Regards,
Miguel Chaparra
In addition to @Miguel solution, I also want to include the sample app fulfilling the mentioned use-case --> Using JS and normal logic
See the sample app
Logic Steps:
Introduce an boolean adhoc attribute in the list mapped with the accordion widget and modify the current boolean attribute value accordingly
Please refer the attached .oml solution file
Hope this helps you!
Benjith Sam