This component is used to show time countdown in a reactive application.
For that, we have a JS script in the Scripts folder:
For correct usage, you need to insert the "Countdown" block in the place that you need the countdown to appear.
Fill in the inputs with the hour, minutes or seconds you want the countdown to start from:
- Format (not mandatory), default value of "%H:%M:%S";
- Hours (not mandatory);
- Minutes (not mandatory);
- Seconds (mandatory);
The block "Countdown" is under the "MainFlow" flow.
After that, you need to configure an handler to the "Countdown_Finished" event. With that you can control what kind of behavior you want in your application when the time is zero.
This action is triggered in the JavaScript used in the OnRender. Feel free to customize it.