# Developing Nodes

**URL:** https://discourse.nodered.org/c/developing-nodes/15.md?page=43

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

**Page:** 44

---

## [Checking object instance](https://discourse.nodered.org/t/checking-object-instance/19482)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 1\
**Last updated:** [23 December 2019 09:29 UTC](https://discourse.nodered.org/t/checking-object-instance/19482 "2019-12-23T09:29:51Z")

</div>

Hi folks, I'm finalizing a pull request for the node-red-contrib-image-output node, but I'm stuck ... In another node (node-red-contrib-image-tools) the following code checks whether the input is a Jimp image object: v…

---

## [Adding a button to a node in the flow editor](https://discourse.nodered.org/t/adding-a-button-to-a-node-in-the-flow-editor/19414)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 7\
**Last updated:** [22 December 2019 07:38 UTC](https://discourse.nodered.org/t/adding-a-button-to-a-node-in-the-flow-editor/19414 "2019-12-22T07:38:55Z")

</div>

Hi folks, I'm in the situation where it would be nice to have a button on a node in the flow editor... Never used it before since I understand that the flow editor is not a dashboard. But I would like add it to the no…

---

## [Sending messages inside callback functions](https://discourse.nodered.org/t/sending-messages-inside-callback-functions/18683)

<div class="topic-metadata">

**Author:** [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Replies:** 33\
**Last updated:** [15 December 2019 02:14 UTC](https://discourse.nodered.org/t/sending-messages-inside-callback-functions/18683 "2019-12-15T02:14:10Z")

</div>

I have been working on a custom node for what seems like an eternity (worse it is yet another scheduling node :crazy\_face:. I have it close to where I want it but have come across one interesting problem. The node uses …

---

## [Updating the elementSizer values](https://discourse.nodered.org/t/updating-the-elementsizer-values/19089)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 0\
**Last updated:** [12 December 2019 21:59 UTC](https://discourse.nodered.org/t/updating-the-elementsizer-values/19089 "2019-12-12T21:59:50Z")

</div>

Hi folks, In my latest UI node I have (like in my other UI nodes) a normal elementsizer widget: Which is created like this: oneditprepare: function() { $("#node-input-size").elementSizer({ width: "#node-inp…

---

## [Developing on fork of node](https://discourse.nodered.org/t/developing-on-fork-of-node/18927)

<div class="topic-metadata">

**Author:** [@bohtho](https://discourse.nodered.org/u/bohtho)\
**Replies:** 20\
**Last updated:** [11 December 2019 01:52 UTC](https://discourse.nodered.org/t/developing-on-fork-of-node/18927 "2019-12-11T01:52:23Z")

</div>

I plan to develop features on a contrib-node, and make a PR (my first with real code!) to the original project on GitHub. What is the best way to do this ? Should I change the package.json to point to my fork during de…

---

## [Get notified when node has been deleted](https://discourse.nodered.org/t/get-notified-when-node-has-been-deleted/18987)

<div class="topic-metadata">

**Author:** [@systec-ad](https://discourse.nodered.org/u/systec-ad)\
**Replies:** 5\
**Last updated:** [10 December 2019 12:57 UTC](https://discourse.nodered.org/t/get-notified-when-node-has-been-deleted/18987 "2019-12-10T12:57:39Z")

</div>

Hi, I want to implement a node, which does some communication with a remote server. The server demands some sort of state handling by the client (which is my custom node). Is it possible to get an event, when the node …

---

## [Proper way to define & namespace functions in a node](https://discourse.nodered.org/t/proper-way-to-define-namespace-functions-in-a-node/18871)

<div class="topic-metadata">

**Author:** [@fahrvergnuugen](https://discourse.nodered.org/u/fahrvergnuugen)\
**Replies:** 12\
**Last updated:** [9 December 2019 15:00 UTC](https://discourse.nodered.org/t/proper-way-to-define-namespace-functions-in-a-node/18871 "2019-12-09T15:00:06Z")

</div>

When writing client side static JS functions, what is the proper way to define and then call them so they are specific to the node I am creating? Are we supposed to declare functions within the registerType call? If so,…

---

## [Dynamically hide or show custom UI node content](https://discourse.nodered.org/t/dynamically-hide-or-show-custom-ui-node-content/18897)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 3\
**Last updated:** [8 December 2019 08:44 UTC](https://discourse.nodered.org/t/dynamically-hide-or-show-custom-ui-node-content/18897 "2019-12-08T08:44:48Z")

</div>

Hi folks, In my new custom UI node I would like to be able to hide or show my component dynamically. We had a rather similar discussion some time ago, but then we wanted "always" to hide or show the content. This is h…

---

## [UI node gets new md-card at every deploy](https://discourse.nodered.org/t/ui-node-gets-new-md-card-at-every-deploy/18888)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 4\
**Last updated:** [7 December 2019 23:04 UTC](https://discourse.nodered.org/t/ui-node-gets-new-md-card-at-every-deploy/18888 "2019-12-07T23:04:56Z")

</div>

Hi folks, I'm developing a new UI node, but something weird is going on. Every time I deploy my flow, I get a new md-card for the group where my UI node belongs to. For example, this is the result after 3 successive d…

---

## [Writing values to a node's config](https://discourse.nodered.org/t/writing-values-to-a-nodes-config/18760)

<div class="topic-metadata">

**Author:** [@fahrvergnuugen](https://discourse.nodered.org/u/fahrvergnuugen)\
**Replies:** 4\
**Last updated:** [6 December 2019 16:09 UTC](https://discourse.nodered.org/t/writing-values-to-a-nodes-config/18760 "2019-12-06T16:09:11Z")

</div>

How do you write to a node's config from the backend? Backstory: I want to use the node's config to cache data from a physical home automation device. The problem I am facing is that you can only read these values from…

---

## [My first node is not integrated by Node-RED flow](https://discourse.nodered.org/t/my-first-node-is-not-integrated-by-node-red-flow/18852)

<div class="topic-metadata">

**Author:** [@Arnaud](https://discourse.nodered.org/u/Arnaud)\
**Replies:** 7\
**Last updated:** [6 December 2019 10:24 UTC](https://discourse.nodered.org/t/my-first-node-is-not-integrated-by-node-red-flow/18852 "2019-12-06T10:24:05Z")

</div>

Hi, I have delivered yesterday my first node yesterday (18h ago) : @adeunis/node-red-contrib-adeunis-codecs I'm able to install it manually in node-red (under windows 10) but it seems that something is going wrong as i…

---

## [Does a sidebar node has a server side instance?](https://discourse.nodered.org/t/does-a-sidebar-node-has-a-server-side-instance/18392)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [25 November 2019 13:11 UTC](https://discourse.nodered.org/t/does-a-sidebar-node-has-a-server-side-instance/18392 "2019-11-25T13:11:22Z")

</div>

Hi folks, It seems like I am somehow misinterpreting how sidebar nodes work :weary: My server side part is never called: function XtermSidebarNode(config) { RED.nodes.createNode(this, config); console.log("THIS …

---

## [Detect when flow editor is closed](https://discourse.nodered.org/t/detect-when-flow-editor-is-closed/18357)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [24 November 2019 20:44 UTC](https://discourse.nodered.org/t/detect-when-flow-editor-is-closed/18357 "2019-11-24T20:44:29Z")

</div>

Hi folks, Is there any way (on the server side) to detect when a flow editor has client been closed? For my new node-red-contrib-xterm node, a separate pseudo-terminal is started (on the server) for each flow editor th…

---

## [How to throw the error message in register function?](https://discourse.nodered.org/t/how-to-throw-the-error-message-in-register-function/18146)

<div class="topic-metadata">

**Author:** [@matsujirushi](https://discourse.nodered.org/u/matsujirushi)\
**Replies:** 0\
**Last updated:** [19 November 2019 13:02 UTC](https://discourse.nodered.org/t/how-to-throw-the-error-message-in-register-function/18146 "2019-11-19T13:02:34Z")

</div>

Hi, How to throw the error message when error happened in register function? (I tried to call 'node.error(), I cannot see it on Node-RED editor.)

---

## [RED.nodes.getNode fails on Windows 10](https://discourse.nodered.org/t/red-nodes-getnode-fails-on-windows-10/18069)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 0\
**Last updated:** [17 November 2019 19:05 UTC](https://discourse.nodered.org/t/red-nodes-getnode-fails-on-windows-10/18069 "2019-11-17T19:05:56Z")

</div>

Hi folks, I'm currently developing a node which contains following endpoint: RED.httpAdmin.get('/xterm\_shell/:node\_id/:terminal\_id/:command/:info', function(req, res) { var xtermShellNode = RED.nodes.getNode(req.par…

---

## [Use files from dependent npm module](https://discourse.nodered.org/t/use-files-from-dependent-npm-module/17978)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 5\
**Last updated:** [15 November 2019 01:01 UTC](https://discourse.nodered.org/t/use-files-from-dependent-npm-module/17978 "2019-11-15T01:01:01Z")

</div>

Hi folks, I'm stuck again with one of my new nodes. My custom node depends on another NPM module, so I have added it as a dependency in my package.json file. That module contains a couple of files that I need. For ex…

---

## [Get node info from within admin endpoint](https://discourse.nodered.org/t/get-node-info-from-within-admin-endpoint/17968)

<div class="topic-metadata">

**Author:** [@kurvenschubser](https://discourse.nodered.org/u/kurvenschubser)\
**Replies:** 0\
**Last updated:** [14 November 2019 17:24 UTC](https://discourse.nodered.org/t/get-node-info-from-within-admin-endpoint/17968 "2019-11-14T17:24:04Z")

</div>

Hi, in an admin endpoint I'd like to access a node's property which is a password field named "apikey". I've followed the guideline from here: https://github.com/node-red/cookbook.nodered.org/wiki/Create-an-admin-config…

---

## [Clear password field in Node](https://discourse.nodered.org/t/clear-password-field-in-node/17948)

<div class="topic-metadata">

**Author:** [@akvish](https://discourse.nodered.org/u/akvish)\
**Replies:** 1\
**Last updated:** [14 November 2019 12:03 UTC](https://discourse.nodered.org/t/clear-password-field-in-node/17948 "2019-11-14T12:03:21Z")

</div>

How to clear the credentials field in UI at each edit of the node? I used autocomplete off. But it is not working. My code snippet \<input type="password" id="node-input-password" placeholder="password" autocomplete="of…

---

## [Creating Login For A Node](https://discourse.nodered.org/t/creating-login-for-a-node/17881)

<div class="topic-metadata">

**Author:** [@akvish](https://discourse.nodered.org/u/akvish)\
**Replies:** 2\
**Last updated:** [14 November 2019 11:24 UTC](https://discourse.nodered.org/t/creating-login-for-a-node/17881 "2019-11-14T11:24:31Z")

</div>

I was trying to create a login mechanism for my node. I followed the below page from official documentation. https://nodered.org/docs/creating-nodes/credentials But the values are not appearing in the run time. My node…

---

## [Debugging config screen fails in Chrome](https://discourse.nodered.org/t/debugging-config-screen-fails-in-chrome/17758)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [10 November 2019 23:48 UTC](https://discourse.nodered.org/t/debugging-config-screen-fails-in-chrome/17758 "2019-11-10T23:48:39Z")

</div>

Hi folks, Does anybody else has recently troubles to debug the client side (config screen) of his custom nodes, using Chrome developer tools (version 78.0.3904.97 on Windows 10)? When developing a custom node, I debug …

---

## [Troubleshooting a custom node using logging](https://discourse.nodered.org/t/troubleshooting-a-custom-node-using-logging/17296)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [8 November 2019 16:16 UTC](https://discourse.nodered.org/t/troubleshooting-a-custom-node-using-logging/17296 "2019-11-08T16:16:35Z")

</div>

Hi folks, I got a question about my node-red-contrib-interval-length node, which measures the time interval between consecutive input messages. In the config screen you can specify in which output message field that me…

---

## [Problem with validation in ui](https://discourse.nodered.org/t/problem-with-validation-in-ui/17307)

<div class="topic-metadata">

**Author:** [@uma](https://discourse.nodered.org/u/uma)\
**Replies:** 7\
**Last updated:** [7 November 2019 04:45 UTC](https://discourse.nodered.org/t/problem-with-validation-in-ui/17307 "2019-11-07T04:45:36Z")

</div>

Hi I need some help with editor validation- specifically a dynamically populated select. The select is populated by calling an endpoint in the backend (defined using RED.httpadmin...) in oneditprepare. There is a defa…

---

## [Best place to generate a key pair](https://discourse.nodered.org/t/best-place-to-generate-a-key-pair/17455)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 6\
**Last updated:** [3 November 2019 16:56 UTC](https://discourse.nodered.org/t/best-place-to-generate-a-key-pair/17455 "2019-11-03T16:56:28Z")

</div>

Hi folks, For one of my new nodes, the user needs to generate a key pair (i.e. private key and corresponding public key). To make the whole thing a bit user-friendly, I would like the user to be able to generate a new …

---

## [Custom node category and node-red retro compatibility](https://discourse.nodered.org/t/custom-node-category-and-node-red-retro-compatibility/17234)

<div class="topic-metadata">

**Author:** [@edorgeville](https://discourse.nodered.org/u/edorgeville)\
**Replies:** 6\
**Last updated:** [28 October 2019 14:55 UTC](https://discourse.nodered.org/t/custom-node-category-and-node-red-retro-compatibility/17234 "2019-10-28T14:55:30Z")

</div>

Hi there! As per node-red 1.0.0, most i/o nodes have been moved to the network category. This makes some of our custom nodes look all alone and sad in their old input and output categories. We want to move them to the …

---

## [Lately adding properties on configuration node](https://discourse.nodered.org/t/lately-adding-properties-on-configuration-node/17025)

<div class="topic-metadata">

**Author:** [@francxk](https://discourse.nodered.org/u/francxk)\
**Replies:** 5\
**Last updated:** [23 October 2019 15:59 UTC](https://discourse.nodered.org/t/lately-adding-properties-on-configuration-node/17025 "2019-10-23T15:59:07Z")

</div>

I add latetally (after a httpadmin request) properties on a configuration node. everything is saved on the server part (flow files), but when i m editing again the node configuration, the previous settings are not set. i…

---

## [Have an "out of the box" editor for inputs](https://discourse.nodered.org/t/have-an-out-of-the-box-editor-for-inputs/17020)

<div class="topic-metadata">

**Author:** [@JbIPS](https://discourse.nodered.org/u/JbIPS)\
**Replies:** 3\
**Last updated:** [22 October 2019 18:03 UTC](https://discourse.nodered.org/t/have-an-out-of-the-box-editor-for-inputs/17020 "2019-10-22T18:03:59Z")

</div>

Hi, I created some custom nodes and as they grow I want to polish their properties editor. In most case, have a nice textarea editor with JSON syntax highlighting. To do that, I copy/paste the code of the "Template" no…

---

## [TypeError: Cannot read property 'nodes' of undefined](https://discourse.nodered.org/t/typeerror-cannot-read-property-nodes-of-undefined/16084)

<div class="topic-metadata">

**Author:** [@gelbo123](https://discourse.nodered.org/u/gelbo123)\
**Replies:** 9\
**Last updated:** [16 October 2019 15:42 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-nodes-of-undefined/16084 "2019-10-16T15:42:03Z")

</div>

Hello, I have two javascript-files for some custom-nodes... Goal is to use the functionality from "hello-world.js" which is a custom-node in the "test.js". In the first one "hello-world.js" - I'm writing an input from …

---

## [Has anyone developed a node, pushed to github and used CI?](https://discourse.nodered.org/t/has-anyone-developed-a-node-pushed-to-github-and-used-ci/16706)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 2\
**Last updated:** [14 October 2019 21:23 UTC](https://discourse.nodered.org/t/has-anyone-developed-a-node-pushed-to-github-and-used-ci/16706 "2019-10-14T21:23:38Z")

</div>

I've learned how to create a node, publish to NPM, use git (branch, merge, curse at ssh when using different keys) an test my node. I'm in the middle of using Robot Framework to test my node. How does one use the CI to a…

---

## [FontAwesome icon with incorrect color](https://discourse.nodered.org/t/fontawesome-icon-with-incorrect-color/16521)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 31\
**Last updated:** [12 October 2019 10:45 UTC](https://discourse.nodered.org/t/fontawesome-icon-with-incorrect-color/16521 "2019-10-12T10:45:10Z")

</div>

Hi folks, This question is related to our new node-red-contrib-ui-svg node. We got some good news from Joseph Liard that has released a new version of DrawSvg, which now supports FontAwesome icons (which he has especia…

---

## [Node is getting deleted on click of backspace on search field](https://discourse.nodered.org/t/node-is-getting-deleted-on-click-of-backspace-on-search-field/16423)

<div class="topic-metadata">

**Author:** [@Surendra](https://discourse.nodered.org/u/Surendra)\
**Replies:** 4\
**Last updated:** [9 October 2019 05:53 UTC](https://discourse.nodered.org/t/node-is-getting-deleted-on-click-of-backspace-on-search-field/16423 "2019-10-09T05:53:40Z")

</div>

Hello Guys, I have created custom node in which I have search box will search the label from list of labels. Issue : when I type a keywords in searchbox and uses back space button to change my search keywords, that tim…

[Previous page](https://discourse.nodered.org/c/developing-nodes/15.md?page=42)

[Next page](https://discourse.nodered.org/c/developing-nodes/15.md?page=44)
