Hi, it must be something obvious as I can't find solution.
I try to use template to show icon
if I enter to template
i have nice fire icon.
However, I want to do it programmically, so I try to inject message with
msg.payload = "fa fa-fire"
and use template as
which doesn't work.
Any thought?
[
{
"id": "532afaeffa9bb8d3",
"type": "tab",
"label": "FVE-voda",
"disabled": false,
"info": "",
"env": []
},
{
"id": "c96f5e956a370175",
"type": "ui_template",
"z": "532afaeffa9bb8d3",
"group": "efe90ccc384fb6b3",
"name": "",
"order": 7,
"width": 0,
"height": 0,
"format": "<i class=\"{{msg.payload}}\"></i>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 640,
"y": 300,
"wires": [
[]
]
},
{
"id": "ccd2f3cbf9d29fbe",
"type": "inject",
"z": "532afaeffa9bb8d3",
"name": "icon",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "\"fa fa-fire\"",
"payloadType": "str",
"x": 330,
"y": 300,
"wires": [
[
"c96f5e956a370175"
]
]
},
{
"id": "efe90ccc384fb6b3",
"type": "ui_group",
"name": "Try",
"tab": "0445cf945958507f",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "0445cf945958507f",
"type": "ui_tab",
"name": "Tab 3",
"icon": "dashboard",
"order": 3
}
]
Node red v 2.2.2 on raspberry