example of node with button.
This is example of node with button.
npm install node-red-contrib-helloworld-button
This is similar to injection node. When button is pushed, this node send out message of "helloworld".
"helloworld-button.html" sends trigger of button by ajax. "helloworld-button.js" receives REST message from html.
This is similar to debug node. When button is active, node send "hello world2" every one second. But button is not hidden in disable like debug.
"helloworld-button2.html" sends state of button by REST API. "helloworld-button2.js" receives the state of button.