# Hide selective ui nodes in subflow with Flowfuse Dashboard2

**URL:** <https://discourse.nodered.org/t/hide-selective-ui-nodes-in-subflow-with-flowfuse-dashboard2/95387>\
**Category:** Dashboard\
**Tags:** flowfuse, dashboard-2\
**Created:** [13 February 2025 19:09 UTC](https://discourse.nodered.org/t/hide-selective-ui-nodes-in-subflow-with-flowfuse-dashboard2/95387 "2025-02-13T19:09:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrX](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrx/32/74473_2.png) [@MrX](https://discourse.nodered.org/u/MrX)\
**Post date:** [13 February 2025 19:09 UTC](https://discourse.nodered.org/t/hide-selective-ui-nodes-in-subflow-with-flowfuse-dashboard2/95387/1 "2025-02-13T19:09:09Z")

</div>

I have created a general Nodered subflow "Sensor" for many types of sensors. (temperature, pressure, power, volt, current, humidity...)  
The subflow "Sensor" includes a "Classic gauge", ui-chart and ui-text UI-nodes in Dashboard2.  
This works great !

But now I want to "show" or "hide" (without allocate the space) some of the UI-nodes by using Subflows "Enviroment Variable" with a "Checkbox" of the "Classic Gauge", "Chart" and "Text"-node for each sensor in the Subflows, but how could I hide selective ui-nodes in a subflow ?  
If the ui-node was a "Template" node I could use CSS "Display: none", but how could I solve it for the nodes "Classic gauge", ui-chart and ui-text ?

---

<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 February 2025 10:35 UTC](https://discourse.nodered.org/t/hide-selective-ui-nodes-in-subflow-with-flowfuse-dashboard2/95387/2 "2025-02-14T10:35:36Z")

</div>

You could still use CSS by setting the class property on each widget to (for example) `${HIDE_ME_CLASS}` and adding a ui-template with the necessary CSS for the class name

You can also use ui-control to show/hide the group (assuming each control is in a group)

---

<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:** [16 March 2025 10:36 UTC](https://discourse.nodered.org/t/hide-selective-ui-nodes-in-subflow-with-flowfuse-dashboard2/95387/3 "2025-03-16T10:36:34Z")

</div>

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