Dashboard Template - reuse of switch or dropdown within a generic template

Hello,

I have a question regarding the reusage of custom controls like switch or dropdown within a template node. I made some custom controls like a shutter control to change postion/slats (with dynamic icons dependending on the values). This looks like that:
image
Therefor a have created several controls and put them together.

In order to enable easy reuse, I want to convert this into a template node. Since I found now way to extend the in/out connections of a template node, I wonder if this is possible at all?

If not, I would only move the controls inside the template (this allows me to save the template in the library and use it very easily).

Is there an example of how to use a common dashboard control like switch or dropdown inside a template?

Are you talking about the older dashboard node-red-dashboard, or the very new Dashboard 2.0 @flowfuse/node-red-dashboard?

Either way, node-red 4.0 (currently available as a Beta version) should have the ability to include dashboard widgets in subflows. Perhaps that would better suit your requirements. It is basically working in the beta version (with the new dashboard at least), though there are still some issues.

here an example of my shutter template ui for Dashboard 2,

user hotNipi made this nice control for me, see

@Colin thanks for your reply. I am using node-red-dashboard, not the new flowfuse. (I might migrate to flowfuse but corrently I do not know of any advantage in my case).

Dashboard subflows sounds exactly like I am looking for. I can move central flows and instantiate them across multiple flows. When I want to change anythink, I only need to adjust this single subflow, not multiple instances of it.

@RedTom thanks for your post. Currently I am using the legacy dashboard, however this kind of control doesn't fit to the rest of my dashboard. Anyway thanks for pointing me to it!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.