I have Submenu in My app and when click on submenu header its opening fine but when try to close/collapse the submenu : its not closing again..tried diff diff solution but not getting any access.
below is our action diagram.any help will be appreciated... and please check the attachments as wellNOTE : this is a single page application.
Hi @Dharmesh Rathore ,
I assume you're using the OnToggle event handler of the sub-menu, but keep in mind that this event is meant for triggering custom logic, not for controlling the sub-menu's open/close behavior. The sub-menu should open or close automatically when its title is clicked, without requiring any additional logic.
So, if you don’t need any custom logic, I recommend removing the event handler.
Hi @Mihai MelencuThanks for your reply.Yes I added toggle event behaviour because when I click submenu item then whole submenu was closing automatically which is not correct.Behaviour should be if I click any item of any Submenu then that submenu should be open and should be closed only when its title is clicked. So by using that toggle event handler I achieved that but now when its title is clicked its Submenu is opening fine but clicking again submenu is not closing.
Hi @Dharmesh Rathore
You can check this link:
https://personal-roecb4u9.outsystemscloud.com/RWA_Lab/NeoLike
I have attached oml file below.
I hope this helps
Thanks
Hi @Rupesh Patil Thanks for your reply.I have seen that but in our app we are using single page application so its not working for me.
If possible can you share oml file?
Hi @Dharmesh Rathore It looks like you are not toggling the variable before entering the If. So, the flow always executes the same branch(open).
Hello @Dharmesh Rathore
Any update about this reported issue?
Cheers,GM