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 have a set of buttons not related to any entity. The buttons only contain name (no icon and no state).
When a button is pressed it sets the value of a input_number entity to a different value.
Is it possible to set the button name (text) color according to the state of the input_number entity's value?
I want the button, which currently coresponds to the input_number value, to be a different color then the other buttons.
For example if "3 hours" button is pressed I want it to change color to RED text (because input_number entity will get value "3") and the other default.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a set of buttons not related to any entity. The buttons only contain name (no icon and no state).
When a button is pressed it sets the value of a input_number entity to a different value.
Is it possible to set the button name (text) color according to the state of the input_number entity's value?
I want the button, which currently coresponds to the input_number value, to be a different color then the other buttons.
For example if "3 hours" button is pressed I want it to change color to RED text (because input_number entity will get value "3") and the other default.
Beta Was this translation helpful? Give feedback.
All reactions