# showLabel: false - how to use it?

**URL:** https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564
**Category:** Core Development
**Created:** [15 January 2024 14:53 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564 "2024-01-15T14:53:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [15 January 2024 14:53 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564/1 "2024-01-15T14:53:10Z")

</div>

Hi There,

I was playing around with the [showlabel: false](https://github.com/node-red/node-red/blob/0e8d3127944a91f39fb49bcb4b388b184ce11edd/packages/node_modules/%40node-red/nodes/core/common/60-link.html#L246) flag and wondering whether it works outside of the link nodes?

At least those nodes to which I added the flag still had a label. I was hoping to have a "mini" node in the editor.

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [15 January 2024 15:25 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564/2 "2024-01-15T15:25:15Z")

</div>

Hi,  
I think:

```js
if (n._def.category != "config" || n.type === 'junction') {}

```

But I have very strange behavior - I think there is a bug behind it

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [15 January 2024 16:07 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564/3 "2024-01-15T16:07:24Z")

</div>

> [@gregorius](#):
>
> I was hoping to have a "mini" node in the editor.

Do you mean this kind of mini node?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5ee8a1f626d2f18089531a9d3d6eecf60ba4abd6.png)

That's using each node's config to set Label: hide, which shows up in flows.json as "l": false.

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

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [15 January 2024 16:37 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564/4 "2024-01-15T16:37:07Z")

</div>

> [@jbudd](#):
>
> Do you mean this kind of mini node?

[Exactamundo](https://en.wiktionary.org/wiki/exactamundo) 👍

> [@jbudd](#):
>
> up in flows.json as "l": false.

I saw that 'l' in the codebase and was wondering why there's an 'l' and 'showLabel' option ... The question is how can I configure a node to do that automatically, i.e., that becomes the default? Setting it in the editor each time is kinda manual-much-work solution!

Edit: ok hacked it by doing this:

```auto
    defaults: {
      name: {
        value:"",
      },
      l: { value: false }
    },

```

in the nodes definition in the html file ... now when I pull it in, it's mini by default

Edit2: don't use `showLabel: false` - just realised that 'l' being false is plenty.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [15 January 2024 17:00 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564/5 "2024-01-15T17:00:38Z")

</div>

> [@jbudd](#):
>
> which shows up in flows.json as "l": false.

On further investigation it looks like the property "l" can be true, false or undefined (= true). Undefined is presumably for backwards compatibility.

---

<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: [29 January 2024 17:01 UTC](https://discourse.nodered.org/t/showlabel-false-how-to-use-it/84564/6 "2024-01-29T17:01:29Z")

</div>

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