Timer

A timer to record the time elapsed from zero or since a specified timestamp. It displays start, stop, and resume buttons, and supports custom time interval and format.

Methods

Methods for interacting with Timer. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.

NameDescriptionscrollIntoView(options: any)

Scrolls the canvas or parent container so that the selected component appears in the visible area.

start()

Start the timer.

setValue(elapsedTimeMs: number)

Set the current value.

toggle()

Start or stop the timer.

stop()

Stop the timer.

reset()

Stop and reset the timer.