Hi guys1
I have the following template which can set a particular ui-text node's font by using its ID:
[
{
"id": "1354ad7a373cff3a",
"type": "ui_template",
"z": "68e5c71acc43e814",
"g": "3965a91f04409ef6",
"group": "62350f50d4b09ff8",
"name": "Set NodeId Font->LCD_Text",
"order": 70,
"width": 0,
"height": 0,
"format": "<style>\n@font-face {\n font-family: LCDFont;\n src: url(\"/fonts/7 Segment.ttf\");\n}\n[node-id=\"06402e17db343b1b\"] .value {\n font-size: 90px; \n color:green;\n font-family: LCDFont;\n }\n</style>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 300,
"y": 1110,
"wires": [
[]
]
},
{
"id": "62350f50d4b09ff8",
"type": "ui_group",
"name": "PCR1000",
"tab": "554e77d51ad13f2d",
"order": 1,
"disp": false,
"width": 25,
"collapse": false,
"className": ""
},
{
"id": "554e77d51ad13f2d",
"type": "ui_tab",
"name": "Main",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]
It is working fine, but rather than specify a template for each UI-Text, I would like to be able to apply it using:
Can you perhaps point me in the right direction?
TIA
Ed