Timer

Display a count-down or count-up timer

The Timer component displays a timer in various formats and can be configured to count down or up.

How to Use

First, configure the Timer component from the Configs tab in the right panel of the Builder. You can customize the update interval, display format, and count direction.

Then switch to the Data tab where you can set the initial and end time. Depending on which direction you set the Timer to count, it will use the initial and end time values. Once the end time has been reached, the On Timer End Trigger and any associated Actions will be fired.

To control the Timer, there are three Actions available - Reset Timer, Start Timer, and Stop Timer. You can Trigger these Actions from different components or on Screen load, for example.

Style Properties

Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.

Configuration Properties

PropertyDescription
Component NameAn optional descriptive name for the component.
Update IntervalHow often the timer updates, in milliseconds. Defaults to 1000 ms (1 second).
Display FormatChoose how the timer's time is displayed.

Options:
mm:ss
hh:mm:ss
hh:mm:ss:ms
mm:ss:ms
ss:ms
Count DirectionDetermines if the timer counts up or down.

Options:
down
up

Data Properties

PropertyDescription
Initial TimeSets the starting time of the timer in milliseconds. Defaults to 0.
End TimeThe time at which the timer will stop. When this time is reached, the On Timer End Trigger will fire

Conditional Display

You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.

Triggers

NameDescription
On Timer EndRuns when the value specified for the End Time is reached
On Timer ChangeRuns when the timer increments/decrements according to the value specified for the Update Interval