# Is it possible to have a node "type" different to the node name/label shown in the palette?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400>\
**Category:** Developing Nodes\
**Created:** [25 June 2023 10:14 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400 "2023-06-25T10:14:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flecoufle](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flecoufle/32/10078_2.png) [@flecoufle](https://discourse.nodered.org/u/flecoufle)\
**Post date:** [25 June 2023 10:14 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400/1 "2023-06-25T10:14:53Z")

</div>

I saw some nodes having a "label" in palette different from the real type coded in the flows.json ?

I have seen builtin nodes like this:  
example : It's written "Read file" but the node type seems to be "file in"

in other words I would like to customize the display slightly different while keeping the type.

---

<div class="post-metadata">

**Author:** ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)\
**Post date:** [25 June 2023 10:35 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400/2 "2023-06-25T10:35:03Z")

</div>

You can set the label in the HTML file defining your node:

```auto
    RED.nodes.registerType('someNodeType',{
        paletteLabel:'myNode',
        ....
        label: function() {
            return this.name||"someNode";
        }
    });

```

**paletteLabel** specifies the tooltip when hovering over the node in the palette  
**label** indicates the node's default label in the editor (unless named explicitly in the node properties)

---

<div class="post-metadata">

**Author:** ![flecoufle](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flecoufle/32/10078_2.png) [@flecoufle](https://discourse.nodered.org/u/flecoufle)\
**Post date:** [25 June 2023 15:17 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400/3 "2023-06-25T15:17:16Z")

</div>

Thanks omrid exactly what I want

---

<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 June 2023 08:09 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400/4 "2023-06-26T08:09:18Z")

</div>

For completeness - here are the docs on the node appearance that covers this: [Node appearance : Node-RED](https://nodered.org/docs/creating-nodes/appearance#palette-label)

---

<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:** [10 July 2023 08:09 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-node-type-different-to-the-node-name-label-shown-in-the-palette/79400/5 "2023-07-10T08:09:24Z")

</div>

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