hobbyquaker / node-red-contrib-polymer

A Polymer based Dashboard UI for Node-RED
MIT License
21 stars 0 forks source link

FR: Support for templates (variables) in widget labels #50

Open M0ebiu5 opened 7 years ago

M0ebiu5 commented 7 years ago

Support for templates in each label field would be nice. Now its pretty extensive to compose a string with different variables for the label and this functionality is often needed.

eg Show door and lock status in a label: "Door is closed, lock is engaged". Definition maybe like "Door is {{label.doorstate}}, lock is {{label.lockstate}}".

It should be possible to update only one variable at once (Door is still closed, but lock status changed). The template should have a separate text field - so it would also be possible to enter default values in the "label" field (json).