Sub-button with time remaining #650
Unanswered
szamfirov
asked this question in
Questions about config, custom styles and templates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm wondering if there's a way to display a sub-button with a custom state which is coming from a timer. The tricky part is that I'd like to have only the remaining time displayed which is not an attribute of the timer - it needs to be calculated. Is it possible to do some basic calculation of time remaining before feeding it to
.innerText
?The following example is just to illustrate my thought process. I'm interested in doing something like this:
All of this would be quite useful when creating buttons for the washing machine and/or dryer for example.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions