Hello everyone,
I have created a node that gets updates from a server and I would like it to allow for unknown number of multiple outputs chosen by the user. I know in the node html file where you declare your node, you can specify in the JSON object the exact number of nodes, but this is then set, and I would like the user to be able to decide (like how the function node you can specify 2,3 or 4 outputs dynamically).
I am a bit of a beginner in programming, and I was wondering if there is a relatively easy way to accomplish this? I noticed for all the predefined nodes that come with node-red they are all a set output except for function which is the only one that can change dynamically.
If anyone has done this before, it would be appreciated if they could point to me to where they did so I could look at the code. I tried looking at the function code and it seems like it is uniquely built in to the function (ie: no simple setting like to pre-set the number of outputs)
Thank you.