I have a scheduler on a page that I would like to add a countdown timer to. For example …
“Data Refreshes in: 3 Minutes 34 Seconds”
I don’t see a way it is possible but it would be nice. Perhaps there is some hidden variable we can tap into?
I have a scheduler on a page that I would like to add a countdown timer to. For example …
“Data Refreshes in: 3 Minutes 34 Seconds”
I don’t see a way it is possible but it would be nice. Perhaps there is some hidden variable we can tap into?
I think the schedule has some data properties itself, but as far as I recall those are percentages. So you can display the time left as progress bar.
I am guessing you are working on some sort of record locking process?
The scheduler only returns a % of the countdown but if the countdown was, for example 300 seconds then you can calculate the reminder with something like
(100-scheduler1.percent)*3000
Just a case of some simple maths to convert to minutes and seconds
Hope that helps
Quick demo @brad
Countdown is set to 300 seconds
countdown interval is 1% of the countdown so every 3 seconds
https://findmystudentdigs.co.uk/countdown.php
Yes, it has a percentage property. Never thought of using a progress bar. That is a very good solution.
Great example, Brian. Works wonderfully!
One problem and two very good solutions! Thanks guys!
This worked really well with a visual guide on the screen
“”
div class=“progress”>
div class=“progress-bar bg-success” role=“progressbar” aria-valuenow=“0” aria-valuemin=“0” aria-valuemax=“100” dmx-style:width.important="{{scheduler1.percent}}%">
/div>
“”