Skip to contents

shinyTimer widget

Usage

shinyTimer(
  inputId,
  label = NULL,
  hours = 0,
  minutes = 0,
  seconds = 0,
  type = "simple",
  background = "none",
  ...
)

Arguments

inputId

The input id.

label

The label to display above the countdown.

hours

An integer, the starting time in hours for the countdown.

minutes

An integer, the starting time in minutes for the countdown.

seconds

An integer, the starting time in seconds for the countdown.

type

The type of the countdown timer display ("simple", "mm:ss", "hh:mm:ss", "mm:ss.cs").

background

The shape of the timer's container ("none", "circle", "rectangle").

...

Any additional parameters you want to pass to the placeholder for the timer (htmltools::tags$div).

Value

A shiny UI component for the countdown timer.