Hello Everyone! I am trying to customize the node that I created. Right now the inject node triggers the functionality i.e. passes the argument and the custom node that I created passes the results and errors to the debug node. I want to ask if there is a way that I can pass these arguments in the custom node itself instead of the inject node? I want that both the inject node and the customnode must be able to take the arguments if the inject node does not input anything the custom node should be able to pass the arguments.
I am attaching some pictures for your reference. Thank you!
You may need a change
node to do that.
It would go in parallel with the inject
node and the change
node's variables are set from other parameters.
eg: context.
I understand what you mean but is there a way I can directly input these parameters into the custom node by editing the html or js code that I wrote?
But node-red works with the idea of message being the transport mechanism.
So messages are sent between nodes via a message.
So when something changes, it causes a message to be sent from one node to the next.
(The next node in this case is yours.)
And so it receives the new message with the new variables.
Yes - you can create a configuration panel using the .html file. See the docs and the sample files Creating your first node : Node-RED
Thank you very much I was able to pass the arguments into the custom node
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.