You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to take a value from a flow and pass it to the switch as an input and then have the custom on/off icons. For example if a lock state changes from locked to unlocked or vice versus.
The documentation shows a string input on msg.payload should initiate the icon change.
I cannot get it to work. Tried string "on" and "off". Tried boolean true/false. What input format and values would make the icon change?
Expected Behavior
No response
Steps To Reproduce
Environment
Dashboard version: 3.6.5
Node-RED version: 4.0.5
Node.js version:
npm version:
Platform/OS: Docker on Ubuntu
Browser:
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
The text was updated successfully, but these errors were encountered:
Ah, while inspecting the results I see that the browser is seeing that the icons are getting prefixed with "mdi-" so therefore only material icons can be used. At least that is what I am seeing. Works with material icons.
But I have admit that I made the same mistake when I started with dashboard D2, because I was so getting used of the FontAwesome icons being used in Node-RED itself.
But yes you are right that it is not really mentioned in the part of the documentation that explains the dynamic injected properties:
However I am not sure if it would be more clear if there would be an "car" in that example column? Because then you still don't know that you need to specify an mdi icon string...
Current Behavior
I want to take a value from a flow and pass it to the switch as an input and then have the custom on/off icons. For example if a lock state changes from locked to unlocked or vice versus.
The documentation shows a string input on msg.payload should initiate the icon change.
I cannot get it to work. Tried string "on" and "off". Tried boolean true/false. What input format and values would make the icon change?
Expected Behavior
No response
Steps To Reproduce
Environment
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
The text was updated successfully, but these errors were encountered: