I have a "navigation" module inside a header that has a "hidden" attribute that I can set via the editor. However, the module object itself does not have a "setHidden" function so I cannot programmatically hide it, which seems like it might be an oversight / bug?
But actually, what would be valuable is if I can programmatically toggle headers and sidebars to be hidden or not hidden in Javascript queries.
For sidebars, it looks like you can programmatically change whether it is shown:
and we have a feature request for this setting on headers!
For the sidebar, you could use setHidden as mentioned below, or you could put something in the hidden field that can be toggled programmatically, such as temporary state (described in more detail here).
Hi @AnsonHwang What would you want this to look like when the sidebar is hidden?
For example, would you want just the default gray background or would you want the background color of the main container to extend over the space of the sidebar? Are you mainly looking to avoid the app from shifting over to the left when the sidebar gets hidden?