# How to hide Navigation Sidebar

**URL:** https://discourse.nodered.org/t/how-to-hide-navigation-sidebar/98647
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [13 August 2025 15:40 UTC](https://discourse.nodered.org/t/how-to-hide-navigation-sidebar/98647 "2025-08-13T15:40:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hyxdxhb1231](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hyxdxhb1231](https://discourse.nodered.org/u/hyxdxhb1231)
#### Post date: [13 August 2025 15:40 UTC](https://discourse.nodered.org/t/how-to-hide-navigation-sidebar/98647/1 "2025-08-13T15:40:02Z")

</div>

how to hide Navigation Sidebar by using function node？

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/6388cebc794be2af7ec8cb1dd2ab533f2f43df73.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b24663bf836742309bff98d5c61dcb2758cf5bf2.png)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 August 2025 17:18 UTC](https://discourse.nodered.org/t/how-to-hide-navigation-sidebar/98647/2 "2025-08-14T17:18:33Z")

</div>

You cannot.  
Function nodes run server side (in the nodejs runtime)  
Dashboard runs client side (in a remote browser)

What you could probably do:

- write a ui-template that handles messages on input
- wire an msg input into the ui-template
- In t he template code:
  - if the `msg.topic` (or payload or whatever) matches some criteria you determine means "close the sidebar), simulate a click on the menu element (not tested, not guaranteed to work)
  - You will also need to inspect the menu elements and figure out what classes/props/attributes identify it as being open before sending a `click` event to avoid getting out-of-step

If you _need_ this level of feature built in, then please raise an issue on the dashboard repository. I suspect this would be somthing that `ui_control` would have to have programmed support for.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [13 September 2025 17:18 UTC](https://discourse.nodered.org/t/how-to-hide-navigation-sidebar/98647/3 "2025-09-13T17:18:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
