# Disable a tabsheet in config screen

**URL:** <https://discourse.nodered.org/t/disable-a-tabsheet-in-config-screen/32031>\
**Category:** Developing Nodes\
**Created:** [26 August 2020 08:54 UTC](https://discourse.nodered.org/t/disable-a-tabsheet-in-config-screen/32031 "2020-08-26T08:54:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [26 August 2020 08:54 UTC](https://discourse.nodered.org/t/disable-a-tabsheet-in-config-screen/32031/1 "2020-08-26T08:54:49Z")

</div>

Hi folks,

I have created some tabsheets in the config screen of a custom node:

```auto
node.tabs = RED.tabs.create({
   id: "node-plotly-tabs"
});
node.tabs.addTab({
   id: "node-plotly-tab-chart",
   label: "Chart"
});

```

Is it somehow possible to disable those tabsheets afterwards?  
Tried a couple of this (like e.g. [this](https://stackoverflow.com/questions/2629939/how-to-disable-the-tabs-using-jquery)) but don't get it running...

Thanks !!  
Bart

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [26 August 2020 09:09 UTC](https://discourse.nodered.org/t/disable-a-tabsheet-in-config-screen/32031/2 "2020-08-26T09:09:40Z")

</div>

Hi @BartButenaers,

the `RED.tabs` component is a custom component created for Node-RED. It has nothing to do with the jQuery UI Tabs component.

There is no api for disabling a tab (by which I assume you mean leave the tab in place, but don't let the user select it) - it isn't a feature we've needed in the core of Node-RED so no code has been written to support it.

You can fully remove a tab using `node.tabs.removeTab("node-plotly-tab-chart");`

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [26 August 2020 09:26 UTC](https://discourse.nodered.org/t/disable-a-tabsheet-in-config-screen/32031/3 "2020-08-26T09:26:39Z")

</div>

Hi Nick,  
welcome back.  
Ok then I will workaround it by removing the tab instead of disabling it.  
Thanks!

---

<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:** [25 October 2020 09:26 UTC](https://discourse.nodered.org/t/disable-a-tabsheet-in-config-screen/32031/4 "2020-10-25T09:26:46Z")

</div>

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