Include Nodes into Templates

83 views
Skip to first unread message

Federico Lettieri

unread,
Jun 6, 2017, 5:04:15 PM6/6/17
to Node-RED UI
Hi all
I am quite new to Node Red and Node Red UI. I am starting to play with UI element "template" . It seems to be exactly what I need to build my own web page . I would be great to have the possibility to handle, refers and place the other node elements (gauge, button and so on) inside the template. 
What is the correct syntax to do this?

Can be something like

<div style="color:#0000FF">
  <h3>This is a heading</h3>
  <p>This is a paragraph.</p>
  {{ref_to_some_button}}
</div>


??
Thank you

Glenn

unread,
Jun 7, 2017, 12:06:21 AM6/7/17
to Node-RED UI
If you are using a template node you have to make your own buttons.


Just make sure the input you want goes to your template node and the output goes to where the button would go.

Then you can use "ng-click" in the button as a button press.

Federico Lettieri

unread,
Jun 7, 2017, 3:54:17 PM6/7/17
to Node-RED UI
Ok
I will try
thank you for the suggestion
Reply all
Reply to author
Forward
0 new messages