Is it possible to persist the state of the Sidebar navigation menu?

I have a sidebar in my application. When I toggle it, I want to store the state of the same and when I come back to my application the saved state of the sidebar should be shown. Is it possible to do so?
1 answers

You need to make a adapted version of the sidebartoggle widget and store the state in an attribute. Place the widget in a dataview and save the state when the value is changed.