Dynamic sidebar
# avo-2
a
In a Resource Tool, I want to dynamically update the contents of a sidebar div based on click events inside of the tool. Basically, when I click on specific divs, I want to render a corresponding ViewComponent into that sidebar div. I have a couple stimulus controllers already on the page that I can use, or I can use a new one. Is there anything already in Avo for this, or does anyone know of existing controllers for this functionality? I didn't see anything, but thought I'd ask. Writing this functionality doesn't seem terribly complex, so no big deal if there's nothing there already.
l
Hi @acceptable-cartoon-88076 i think you already mentioned the right way of implementig this. That would be with stimulus. "Writing this functionality doesn't seem terribly complex" I tottaly agree with you when you have some requirements and you know what reaction to trigger on each action. Making it abstract to apply to multiple use cases can be more tricky.