# Detection of \[tab\] click possible?

**URL:** https://discourse.nodered.org/t/detection-of-tab-click-possible/78053
**Category:** Dashboard
**Created:** [30 April 2023 18:45 UTC](https://discourse.nodered.org/t/detection-of-tab-click-possible/78053 "2023-04-30T18:45:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![edterbak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edterbak/32/60017_2.png) [@edterbak](https://discourse.nodered.org/u/edterbak)
#### Post date: [30 April 2023 18:45 UTC](https://discourse.nodered.org/t/detection-of-tab-click-possible/78053/1 "2023-04-30T18:45:14Z")

</div>

Hi all,

I have a question and google was not able to show me the answer.  
Maybe you know. (Hope so)

I have build a nice dashboard.  
multiple tabs.  
Inside the tabs I have multiple groups which I can show/hide with button presses. 🙂 works nicely.

I notice the settings of hidden/shown tabs/groups is not remembered if you log into the same dashboard from another device.

I have already built the ability to store and restore the state of shown/hidden tabs.

I am looking to create a 'refresh' action after a tab is selected.  
Is it possible to detect GUI tab selection/clicking?

The alternative I have now, which I dont like, is a inject node which acts as a trigger every x minutes to refresh. But this is a brute force method... and I just dont like it. It is untidy, resource hogging and ugly.

Hopefully you guys know of an alternative that can help me in this 🙂

 ![2023-04-30 20_44_07-Node-RED Dashboard](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68d1fdf11a4c3bc771ecadc74cc8819bd11802de.png)

In the above image the Dashboard configuration I built so every user can hide or show main tabs based on their own preference.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [30 April 2023 18:59 UTC](https://discourse.nodered.org/t/detection-of-tab-click-possible/78053/2 "2023-04-30T18:59:31Z")

</div>

Ui-control will give you a on connect and tab change updates, read the help text.

---

<div class="post-metadata">

### Author: ![edterbak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edterbak/32/60017_2.png) [@edterbak](https://discourse.nodered.org/u/edterbak)
#### Post date: [30 April 2023 19:05 UTC](https://discourse.nodered.org/t/detection-of-tab-click-possible/78053/3 "2023-04-30T19:05:51Z")

</div>

Geeess..... I feel stupid now.

Ive been sending stuff to the ui-control node.. but never thought of putting a debug node behind it to see what comes out... OMG

It is so simple... DOH!!!

Thank E1cid

---

<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: [14 May 2023 19:06 UTC](https://discourse.nodered.org/t/detection-of-tab-click-possible/78053/4 "2023-05-14T19:06:18Z")

</div>

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