Dashboard 2 - Looking to change the ui text node 'label' name dynamically via incoming msg.
I've looked at the 'Dynamic Property' feature but I'm guessing that's more to do with colours, borders, styling etc.
Possible?
Dashboard 2 - Looking to change the ui text node 'label' name dynamically via incoming msg.
I've looked at the 'Dynamic Property' feature but I'm guessing that's more to do with colours, borders, styling etc.
Possible?
Please ignore above ....just found Set labels on charts and other widgets via msg · Issue #234 · FlowFuse/node-red-dashboard · GitHub so no, not yet possible.
You can set the label with any msg property using the double curly brackets.
[{"id":"9f552602aaf608e6","type":"ui_text","z":"289f539dcc33814e","group":"96d42b36ee18973d","order":0,"width":0,"height":0,"name":"","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","className":"","style":false,"font":"","fontSize":16,"color":"#000000","x":930,"y":4840,"wires":[]},{"id":"4a91a37cc416aca9","type":"inject","z":"289f539dcc33814e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"dynamic label","payload":"value","payloadType":"str","x":750,"y":4840,"wires":[["9f552602aaf608e6"]]},{"id":"96d42b36ee18973d","type":"ui_group","name":"Test2","tab":"20b3095113f94d70","order":3,"disp":true,"width":"6","collapse":false,"className":""},{"id":"20b3095113f94d70","type":"ui_tab","name":"Home","icon":"dashboard","order":2,"disabled":false,"hidden":false}]
Hi. Your demo is for node-red-dashboard (aka dashboard 1)
The op is using @FlowFuse/node-red-dashboard (aka dashboard 2)
@joepavitt we really aught to consider visual separation from dashboard 1. Can only see this situation getting worse. Yikes.
I did explore other node colour sets, but given how restrictive Node-RED's rules and flexibility is on node styling, there arent any other obvious palettes available that also work with black/dark-grey text.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.