# Developing Nodes

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

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

**Page:** 46

---

## [Config node close event](https://discourse.nodered.org/t/config-node-close-event/12823)

<div class="topic-metadata">

**Author:** [@realjax](https://discourse.nodered.org/u/realjax)\
**Replies:** 7\
**Last updated:** [2 July 2019 20:35 UTC](https://discourse.nodered.org/t/config-node-close-event/12823 "2019-07-02T20:35:34Z")

</div>

As per the docs I understood a config node can ( and should) handle the close event when necessary. Is that correct? Because it seems my handler is not called in my config node and I assume it should at least be called …

---

## [How to get selected the item in dropdown and dropdown is part of custom node property](https://discourse.nodered.org/t/how-to-get-selected-the-item-in-dropdown-and-dropdown-is-part-of-custom-node-property/12660)

<div class="topic-metadata">

**Author:** [@kiran007](https://discourse.nodered.org/u/kiran007)\
**Replies:** 2\
**Last updated:** [28 June 2019 09:06 UTC](https://discourse.nodered.org/t/how-to-get-selected-the-item-in-dropdown-and-dropdown-is-part-of-custom-node-property/12660 "2019-06-28T09:06:37Z")

</div>

.html file code to add dropdown in custom node property \<div class="form-row"\> \<label for="node-input-userValue"\>\<i class="fa fa-calculator"\>\</i\> Value\</label\> \<select id="node-input-userValue"\> \<option\>1\</opt…

---

## [Best way to configure my node via messages](https://discourse.nodered.org/t/best-way-to-configure-my-node-via-messages/12252)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 22\
**Last updated:** [27 June 2019 15:42 UTC](https://discourse.nodered.org/t/best-way-to-configure-my-node-via-messages/12252 "2019-06-27T15:42:36Z")

</div>

Hi folks, I'm developing a new UI node that can be configured to a.o. add N LEDS on top of an image. In the following example I add 3 LEDs, each with a different color: Which results in something like this: Now I…

---

## [New UI camera viewer node - CSS help needed](https://discourse.nodered.org/t/new-ui-camera-viewer-node-css-help-needed/12406)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 12\
**Last updated:** [25 June 2019 09:18 UTC](https://discourse.nodered.org/t/new-ui-camera-viewer-node-css-help-needed/12406 "2019-06-25T09:18:58Z")

</div>

Hi folks, From the questions on the forum, I see that lots of people are struggling to show there camera images in the dashboard. So I started developing a UI camera viewer node, which was almost ready for alpha testin…

---

## [Listening to config node events](https://discourse.nodered.org/t/listening-to-config-node-events/7117)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 9\
**Last updated:** [21 June 2019 06:44 UTC](https://discourse.nodered.org/t/listening-to-config-node-events/7117 "2019-06-21T06:44:34Z")

</div>

Hi folks, I'm a bit stuck with my node-red-contrib-onvif-nodes developments, which allows you to control an Onvif compliant IP camera from a Node-RED flow. An Onvif camera 'can' offer 1 or more different Onvif service…

---

## [Node-RED Admin UI: Display message to user?](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 7\
**Last updated:** [16 June 2019 20:56 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290 "2019-06-16T20:56:48Z")

</div>

I'm sure I should know how to do this but I can't quite work it out and I haven't managed to successfully search for it. Is there a way to display the "toast" type pop-up notification in the admin UI such as Node-RED it…

---

## [Node config screen - Show details of a table row](https://discourse.nodered.org/t/node-config-screen-show-details-of-a-table-row/11958)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 17\
**Last updated:** [15 June 2019 08:10 UTC](https://discourse.nodered.org/t/node-config-screen-show-details-of-a-table-row/11958 "2019-06-15T08:10:04Z")

</div>

Hi folks, In my newest node config screen, a table is displayed. Each row in that table can have a different number of properties/columns. So I show the common properties/columns in the table, but I need to be able to…

---

## [How to create an own TypeEditor](https://discourse.nodered.org/t/how-to-create-an-own-typeeditor/11789)

<div class="topic-metadata">

**Author:** [@NetHans](https://discourse.nodered.org/u/NetHans)\
**Replies:** 7\
**Last updated:** [4 June 2019 11:11 UTC](https://discourse.nodered.org/t/how-to-create-an-own-typeeditor/11789 "2019-06-04T11:11:09Z")

</div>

Is there any official documentation how to create your own TypeEditor?

---

## [Custom UI node - client info to server](https://discourse.nodered.org/t/custom-ui-node-client-info-to-server/11713)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 2\
**Last updated:** [31 May 2019 10:22 UTC](https://discourse.nodered.org/t/custom-ui-node-client-info-to-server/11713 "2019-05-31T10:22:36Z")

</div>

Hi folks, Seems I'm suffering from severe brain damage, because I can't remember anymore how one of my older developments works: we had updated the dashboard audio node, to send the audio status ( playing, reset, error,…

---

## [Custom UI node - do stuff after rendering](https://discourse.nodered.org/t/custom-ui-node-do-stuff-after-rendering/11645)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 9\
**Last updated:** [30 May 2019 22:19 UTC](https://discourse.nodered.org/t/custom-ui-node-do-stuff-after-rendering/11645 "2019-05-30T22:19:19Z")

</div>

Hi folks, I'm developing a new custom UI node, which displays an SVG drawing that fills the available space: function HTML(config) { var configAsJson = JSON.stringify(config); var html = String.raw\` \<s…

---

## [Shared functions in HTML](https://discourse.nodered.org/t/shared-functions-in-html/11663)

<div class="topic-metadata">

**Author:** [@rsenden](https://discourse.nodered.org/u/rsenden)\
**Replies:** 0\
**Last updated:** [29 May 2019 09:14 UTC](https://discourse.nodered.org/t/shared-functions-in-html/11663 "2019-05-29T09:14:48Z")

</div>

I'm developing a plugin containing multiple custom nodes (with all nodes contained in a single HTML file). At the moment, there is quite a lot of code duplication between the various nodes, for example in their oneditpre…

---

## [TypedInput with fix value list and "msg" option](https://discourse.nodered.org/t/typedinput-with-fix-value-list-and-msg-option/11503)

<div class="topic-metadata">

**Author:** [@NetHans](https://discourse.nodered.org/u/NetHans)\
**Replies:** 3\
**Last updated:** [26 May 2019 10:06 UTC](https://discourse.nodered.org/t/typedinput-with-fix-value-list-and-msg-option/11503 "2019-05-26T10:06:34Z")

</div>

Hi, I need a TypedInput with a fix valuelist in default. But I would like to give the alternativ option to set the value by the msg object. I need help by the implementation. \<div class="form-row"\> \<label …

---

## [Validate input message in UI node](https://discourse.nodered.org/t/validate-input-message-in-ui-node/11393)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 7\
**Last updated:** [22 May 2019 20:56 UTC](https://discourse.nodered.org/t/validate-input-message-in-ui-node/11393 "2019-05-22T20:56:35Z")

</div>

Hi folks, When developing a non-UI node, input messages can easily be validated (and optionally skipped): node.on("input", function(msg) { if(!Array.isArray(msg.payload)) { // Skip input message when payloa…

---

## [RED.httpNode.get gives "Unauthorized"](https://discourse.nodered.org/t/red-httpnode-get-gives-unauthorized/8749)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 7\
**Last updated:** [22 May 2019 19:40 UTC](https://discourse.nodered.org/t/red-httpnode-get-gives-unauthorized/8749 "2019-05-22T19:40:24Z")

</div>

Hi folks, I have released last week the node-red-contrib-ui-heatmap node, which worked fine at the moment... However I got a Github issue from somebody that cannot see the heatmap in his dashboard. So I have installed…

---

## [Creating default config node](https://discourse.nodered.org/t/creating-default-config-node/11401)

<div class="topic-metadata">

**Author:** [@uma](https://discourse.nodered.org/u/uma)\
**Replies:** 0\
**Last updated:** [22 May 2019 04:48 UTC](https://discourse.nodered.org/t/creating-default-config-node/11401 "2019-05-22T04:48:22Z")

</div>

This is a related question to another one I had asked earlier but I believe it deserves its own topic. I am creating a custom node which has its own config node (following https://nodered.org/docs/creating-nodes/config-n…

---

## [Constraining the number of config nodes](https://discourse.nodered.org/t/constraining-the-number-of-config-nodes/11398)

<div class="topic-metadata">

**Author:** [@uma](https://discourse.nodered.org/u/uma)\
**Replies:** 0\
**Last updated:** [22 May 2019 03:08 UTC](https://discourse.nodered.org/t/constraining-the-number-of-config-nodes/11398 "2019-05-22T03:08:44Z")

</div>

Hi I am creating config server nodes for my custom node- I am following https://nodered.org/docs/creating-nodes/config-nodes. Is there a way to constrain the number of config nodes created? As an example, I would like t…

---

## [Using Node config in HTML file (access Node config from frontend)](https://discourse.nodered.org/t/using-node-config-in-html-file-access-node-config-from-frontend/10856)

<div class="topic-metadata">

**Author:** [@kosciak](https://discourse.nodered.org/u/kosciak)\
**Replies:** 11\
**Last updated:** [16 May 2019 08:43 UTC](https://discourse.nodered.org/t/using-node-config-in-html-file-access-node-config-from-frontend/10856 "2019-05-16T08:43:20Z")

</div>

Hello, I'm working on an OpenFaaS/NodeRED plugin.. I want for Node configuration in browser, to display list of possible functions in form of dropdown. I have started working on it, but I'm unable to access node configur…

---

## [Is it possible to dynamically change 'required' property for a dynamic property?](https://discourse.nodered.org/t/is-it-possible-to-dynamically-change-required-property-for-a-dynamic-property/10914)

<div class="topic-metadata">

**Author:** [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Replies:** 2\
**Last updated:** [10 May 2019 13:00 UTC](https://discourse.nodered.org/t/is-it-possible-to-dynamically-change-required-property-for-a-dynamic-property/10914 "2019-05-10T13:00:59Z")

</div>

Is it possible to dynamically change 'required' property for a dynamic property? What i mean is suppose you have 2 general purpose parameters on your node config editor that are sometimes required, sometimes not (depend…

---

## [Best practice for sharing static object between instances of a node type](https://discourse.nodered.org/t/best-practice-for-sharing-static-object-between-instances-of-a-node-type/10880)

<div class="topic-metadata">

**Author:** [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Replies:** 2\
**Last updated:** [10 May 2019 12:40 UTC](https://discourse.nodered.org/t/best-practice-for-sharing-static-object-between-instances-of-a-node-type/10880 "2019-05-10T12:40:07Z")

</div>

Where would one store a 'common object' for re-use across all node instances? e.g. Lets say I am developing a node called image and on my flow there are 10 instances. I would like each instance (server side) to be abl…

---

## [HTML5 number input](https://discourse.nodered.org/t/html5-number-input/10721)

<div class="topic-metadata">

**Author:** [@stevenaeola](https://discourse.nodered.org/u/stevenaeola)\
**Replies:** 0\
**Last updated:** [1 May 2019 17:57 UTC](https://discourse.nodered.org/t/html5-number-input/10721 "2019-05-01T17:57:55Z")

</div>

Hi there. Firstly thanks to all who build/maintain/contribute to node-red, it's great. I'm updating a node (more precisely, building a PR for somebody else's node). For the nodes I've created before I've used an HTML5 …

---

## [Node from Node-RED Library removed?](https://discourse.nodered.org/t/node-from-node-red-library-removed/10554)

<div class="topic-metadata">

**Author:** [@o0shojo0o](https://discourse.nodered.org/u/o0shojo0o)\
**Replies:** 4\
**Last updated:** [25 April 2019 19:55 UTC](https://discourse.nodered.org/t/node-from-node-red-library-removed/10554 "2019-04-25T19:55:37Z")

</div>

Hello I just noticed that my node is no longer in the Node-RED Library :frowning: Can anyone tell me why that is? Here the Node https://www.npmjs.com/package/node-red-contrib-pixelit greetings Shojo

---

## [Sharing a single instance](https://discourse.nodered.org/t/sharing-a-single-instance/10342)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 7\
**Last updated:** [20 April 2019 00:24 UTC](https://discourse.nodered.org/t/sharing-a-single-instance/10342 "2019-04-20T00:24:22Z")

</div>

Hi folks, I'm redesigning my node-red-contrib-http-logger to use the mitm library for intercepting http(s) traffic. However after debugging a few evenings, it became at the end clear that I'm only allowed to create 1 m…

---

## [Wire heat map which can be controlled when creating node types](https://discourse.nodered.org/t/wire-heat-map-which-can-be-controlled-when-creating-node-types/10193)

<div class="topic-metadata">

**Author:** [@peterprib](https://discourse.nodered.org/u/peterprib)\
**Replies:** 6\
**Last updated:** [17 April 2019 02:35 UTC](https://discourse.nodered.org/t/wire-heat-map-which-can-be-controlled-when-creating-node-types/10193 "2019-04-17T02:35:30Z")

</div>

I wish to heat map a wire to reflect its usage either by thickness or color via a node. Is this possible. Wish to take metrics and in input adjust colors of attached wires. See other benefits such as visually tracing…

---

## [Callback function to handle http request](https://discourse.nodered.org/t/callback-function-to-handle-http-request/9686)

<div class="topic-metadata">

**Author:** [@Simo219h](https://discourse.nodered.org/u/Simo219h)\
**Replies:** 1\
**Last updated:** [8 April 2019 20:31 UTC](https://discourse.nodered.org/t/callback-function-to-handle-http-request/9686 "2019-04-08T20:31:24Z")

</div>

Hi, I am writing a node, which purpose is to forward its input via a HTTP POST request. I use the node module 'better-sqlite3' to sample the input data, with the following columns: ID, timestamp, feedname, value, upl…

---

## [Custom UI node cannot access changed path](https://discourse.nodered.org/t/custom-ui-node-cannot-access-changed-path/9667)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 3\
**Last updated:** [4 April 2019 21:44 UTC](https://discourse.nodered.org/t/custom-ui-node-cannot-access-changed-path/9667 "2019-04-04T21:44:48Z")

</div>

Hi folks, Got an issue on Github for my node-red-contrib-ui-heatmap node. After some discussions and digging into the code, it seems there are a few things incorrect in my node, but I'm running out of ideas ... This i…

---

## [Custom UI node not visible in dashboard-sidebar](https://discourse.nodered.org/t/custom-ui-node-not-visible-in-dashboard-sidebar/9666)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 10\
**Last updated:** [4 April 2019 20:49 UTC](https://discourse.nodered.org/t/custom-ui-node-not-visible-in-dashboard-sidebar/9666 "2019-04-04T20:49:55Z")

</div>

Hi folks, Got an issue on Github for my node-red-contrib-ui-heatmap node. After some discussions and digging into the code, it seems there are a few things incorrect in my node. ut I'm running out of ideas ... This i…

---

## [Get node instance via RED.nodes.getNode](https://discourse.nodered.org/t/get-node-instance-via-red-nodes-getnode/9611)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 5\
**Last updated:** [31 March 2019 21:28 UTC](https://discourse.nodered.org/t/get-node-instance-via-red-nodes-getnode/9611 "2019-03-31T21:28:17Z")

</div>

Hi folks, Feels like I'm developing my first function node... I created a simple function node that counts the input messages: \[{"id":"ec7fdd88.78f28","type":"function","z":"5a89baed.89e9c4","name":"msg counter","fu…

---

## [Message cleanup of used resources at completion](https://discourse.nodered.org/t/message-cleanup-of-used-resources-at-completion/9262)

<div class="topic-metadata">

**Author:** [@peterprib](https://discourse.nodered.org/u/peterprib)\
**Replies:** 17\
**Last updated:** [24 March 2019 22:13 UTC](https://discourse.nodered.org/t/message-cleanup-of-used-resources-at-completion/9262 "2019-03-24T22:13:42Z")

</div>

Rather than having to add a new node to cleanup up resources, is it possible to add a function to a message that is called at the point the message is destroyed. For example, wish to open a connection to a database assi…

---

## [Dynamic text in panel](https://discourse.nodered.org/t/dynamic-text-in-panel/9353)

<div class="topic-metadata">

**Author:** [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Replies:** 6\
**Last updated:** [24 March 2019 21:56 UTC](https://discourse.nodered.org/t/dynamic-text-in-panel/9353 "2019-03-24T21:56:40Z")

</div>

I'm taking little steps in creating a custom node, although I am a little familiar with javascript, not so much with node.js. I am trying to display dynamic data in the panel based on the pulldown selection. As there…

---

## [\[Solved\] How to reproduce the drag-to-expand feature of the JSONata expression editor?](https://discourse.nodered.org/t/solved-how-to-reproduce-the-drag-to-expand-feature-of-the-jsonata-expression-editor/9021)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 3\
**Last updated:** [23 March 2019 15:38 UTC](https://discourse.nodered.org/t/solved-how-to-reproduce-the-drag-to-expand-feature-of-the-jsonata-expression-editor/9021 "2019-03-23T15:38:10Z")

</div>

As I'm developing uibuilder v2, I've been wanting to improve the admin ui for editing the front-end files. One of the things that I'm struggling with is getting the editor to vertically resize properly. But I noticed …

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

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