[Example] Timer-cards with round progressbar. #937
Replies: 6 comments 20 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
For Subbuttons use this code in the style partThis is for sub-button 1
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Disclaimer: I may have understood something wrong here as I'm not very experienced with this syntax. So bare with me. When we evaluate the lambda functions, it runs just like if the JS code was pasted in the console, so in global scope. I believe this addresses the issue (
Other improvements:
I thought it would be possible to disable the timer when idle, but it seems I got it wrong. This code will never stop the interval, even when navigating away to a different dashboard. I'd love to fix it. |
Beta Was this translation helpful? Give feedback.
-
YAML
Only the style element
Extra Features:
Code for timers in sub-button below
Code for round progress bar for batteries Below
Disclamers/Thank you
Edits
Beta Was this translation helpful? Give feedback.
All reactions