node-red-contrib-polymer icon indicating copy to clipboard operation
node-red-contrib-polymer copied to clipboard

FR: Support for templates (variables) in widget labels

Open M0ebiu5 opened this issue 7 years ago • 0 comments

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).

M0ebiu5 avatar Mar 22 '17 12:03 M0ebiu5