Timer - Writer AI Studio

Fields

Name Type Description Options
Interval (ms) Number How much time to wait between ticks. A tick is considered finished when its event is handled. -
Active Boolean Whether the timer should trigger tick events. -
Accent Color - -
Custom CSS classes Text CSS classes, separated by spaces. You can define classes in custom stylesheets. -

Events

wf-tick

Emitted when the timer ticks.

def handle_timer_tick(state):

# Increment counter when the timer ticks

state["counter"] += 1