In the following code, I was able to create a dynamic menu, based on modules and logged in user access, but when trying to control whether or not the bi-chevron-right and bi-chevron-down icons are displayed, I am not being able to access the status of collapsed or not.
I did a small test based on your initial code...
The Icon wasn't changing untill I noticed that is="dmx-bs5-collapse" was missing.
When I added it and UPDATED my page it worked fine
Please check, Is dmxBootstrap5Collapse.js declared in your page? <script src="/dmxAppConnect/dmxBootstrap5Collapse/dmxBootstrap5Collapse.js" defer></script>
tks so much @famousmag and @Apple by suport, i finnaly finded the trouble! I cant used de ID dinamics, i changed for fixed ID on the collapse and works fine!
ONLY ONE collapse is going to be rendered each time?
Could you just include each collapse in a ConditionalRegion if="IDModulo==IDModule" and give to all collapses the same id="collapseModulo" (since only one will be rendered there will be no dublicate ids)
This way I think that the collapseModulo.collapse will be clear and unique and return true or false depending on if the only one collapseModulo is collapsed or no
I'm rendering all the collapses in a repeat at the same time.
I just saw here that it resolved when I used a hybrid way, sending the fixed ID and another dynamic one, when I leave only the fixed one, all the collapses open.