Select to view content in your preferred language

Automatically Close Sidebar When Selection Is Cleared – How to Achieve This?

184
2
2 weeks ago
Labels (2)
MarkusLandauer
New Contributor

Hello everyone,

I’m currently working on a project where an information window or sidebar is displayed when either an item in the list is clicked or a line on the map is selected. This works fine – the sidebar opens as expected.

Now, I want the sidebar to automatically close when the selection is cleared. I’ve already tried several approaches:

  • Fixed Window: No actions can be assigned here.

  • Sidebar: There is only a trigger to “open,” but no trigger to “close.”

  • Button: There is a “Toggle Sidebar” trigger, which I like, but I cannot assign it to both the list widget and the map widget at the same time, as it is not available there.

My question: What would be the correct approach to automatically close the sidebar (or any information window, whether it’s a fixed window, sidebar, anchored window, or other variant) when no selection exists anymore?

Thanks in advance for your tips!

Tags (1)
2 Replies
MarkusLandauer
New Contributor
0 Kudos
anonymous55
Frequent Contributor

This is exactly what I am looking for 😞

0 Kudos