Dynamic Button CSS Classes #280
-
Hey there, Is it possible to change the CSS/Icon of a button placed in the control center based on some external script. For instance, if a script determines wifi is disconnected, changing the CSS class to one which is red would be nice. |
Beta Was this translation helpful? Give feedback.
Answered by
ErikReider
Jun 14, 2023
Replies: 1 comment 3 replies
-
At the time of writing, these button are very simple and only run the script provided on click. A hacky way of doing this is to update the config JSON/CSS and hot reload to apply the changes? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ldelossa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the time of writing, these button are very simple and only run the script provided on click. A hacky way of doing this is to update the config JSON/CSS and hot reload to apply the changes?