Countdown timer

Hi,

Can anyone please help in guiding me to create a countdown timer.

Thanks

Here is the example countdown.pma (5.8 KB)

You can change count in the Timer inspector:
image

Hi Michael,

I tested this and it seems like a numerical timer, is it possible to set this for a specific duration like say for 15 minutes ?

Regards,
Melvyn

You need to set the interval to 900000 (15 * 60 * 1000)

Hi Michael,

Thank you for your reply, one other question, while the backend is set according to your post above, how do we get the front end to display as a proper reducing timer (for eg. 15:00, 14:59, 14:58, 14:57, etc)

Also, I noticed is the timer widget a separate one you created that is not part of the ususal flipabit installation, I can seem to find it anywhere.

Regards,
Melvyn

Regards,
Melvyn

Timer is a built-in widget:
image

Here are two examples:

  1. Using Actions only - countdown_timer.pma (6.2 KB)

image

  1. Using QML/JavaScript code (based on this answer) - countdown_timer_javascript.pma (6.1 KB)

image

Hi Michael,

Thank you for this. Really appreciate all your help.

Regards,
Melvyn


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.