Hello Node-Red community,
Can anyone tell me if it's possible to access the variable node.name
in a template node as we would do in a function node?
Thanks in advance.
Hello Node-Red community,
Can anyone tell me if it's possible to access the variable node.name
in a template node as we would do in a function node?
Thanks in advance.
I presume you mean a ui-template node.
Not according to https://discourse.nodered.org/t/referencing-node-name-from-nodes-other-than-function/17469
Maybe something has changed since Nick wrote his answer to that post but I doubt it.
The Javascript in ui-template is running in the browser, not node-red. So node would not be available to the ui-template code.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.