# Hide color picker when light is off

**URL:** <https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124>\
**Category:** Dashboard\
**Created:** [7 July 2021 09:23 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124 "2021-07-07T09:23:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjoerd](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sjoerd](https://discourse.nodered.org/u/Sjoerd)\
**Post date:** [7 July 2021 09:23 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124/1 "2021-07-07T09:23:17Z")

</div>

I am using the MiLight control (node-red-contrib-milight-3) in combination with the dashboard (node-red-dashboard). I have a few color bulbs and I can switch them on and off and I can pick a color with the the color picker. That works as it should. What I would like to do is to hide the color picker when the bulb is off and show it when the bulb is on. I tried the ui-control (ui\_ui\_control) but it allows only the hiding and showing of tabs and groups, not of individual controls. Does anyone has an idea on how to make this work?

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [7 July 2021 23:59 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124/2 "2021-07-07T23:59:33Z")

</div>

It may help attract involvement if you supply your flow and other details about what you have tried that didn't seem to work, in case you were close but missing a detail.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 July 2021 07:20 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124/3 "2021-07-08T07:20:48Z")

</div>

There is no simple way to do it - though maybe careful creation of groups without titles could help. Apart from that then you would have to get into careful use of CSS and styles but it may not re-layout the screen to compensate

---

<div class="post-metadata">

**Author:** ![Sjoerd](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sjoerd](https://discourse.nodered.org/u/Sjoerd)\
**Post date:** [8 July 2021 07:41 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124/4 "2021-07-08T07:41:35Z")

</div>

This is the flow:

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

When the On-Off button is On:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/f/ef3b804c6841ac9320d88ffc03edcf4b4febd0f3.png)

When it is Off:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/5/3574d2ef7e3708a4dbddfa200a5baba450b0acc2.png)

When I use the UI control with this function:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/4/04bf9fd4648330bacd96690ec10297e853aa4909.png)

the tab completely disappears

---

<div class="post-metadata">

**Author:** ![Sjoerd](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sjoerd](https://discourse.nodered.org/u/Sjoerd)\
**Post date:** [8 July 2021 07:43 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124/5 "2021-07-08T07:43:18Z")

</div>

Thank you for answer. I will dive deeper and when I have a solution I will post it here.

---

<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:** [7 August 2021 07:44 UTC](https://discourse.nodered.org/t/hide-color-picker-when-light-is-off/48124/6 "2021-08-07T07:44:10Z")

</div>

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