The Timer component for Retool Apps
A button to record elapsed time.
Settings
Timer includes the following configurable options when building apps in the IDE.
Event handlersFormatIntervalShow on desktopShow on mobileMaintain space when hiddenMarginAlways show in edit modeStylesTime elapsed sinceValue |
Properties
All properties for Timer with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
elapsedTimeMs
number
The time, in milliseconds, that has elapsed.
Properties
method
enum
The JavaScript method to perform when type
is datasource
, widget
, state
, or localStorage
.
Values
datasource | Control query. |
widget | Control component. |
script | Run script. |
state | Set variable. |
localStorage | Set localStorage. |
util | Perform utility action (e.g., Open URL or Confetti). |
global
boolean
Whether the object is globally scoped for use in all app pages.
boolean
Whether the component is visible.
id
string
The unique identifier.