countdown_update {countdown} | R Documentation |
Update a Countdown Timer in a Shiny App
Description
Updates the settings of a countdown timer dynamically in a Shiny app via
server logic. See countdown_shiny_example()
for an example app
demonstrating the usage of countdown_update()
.
Usage
countdown_update(
id,
...,
minutes = NULL,
seconds = NULL,
warn_when = NULL,
update_every = NULL,
blink_colon = NULL,
play_sound = NULL,
session = NULL
)
Arguments
id |
A character vector with one or more |
... |
Ignored, but included for future compatibility. |
minutes |
The number of minutes for which the timer should run. This
value is added to |
seconds |
The number of seconds for which the timer should run. This
value is added to |
warn_when |
Change the countdown to "warning" state when |
update_every |
Update interval for the timer, in seconds. When this
argument is greater than |
blink_colon |
Adds an animation to the blink the colon of the digital
timer at each second. Because the blink animation is handled via CSS and
not by the JavaScript process that decrements the timer, so the animation
may fall out of sync with the timer. For this reason, the blink animation
is only shown, by default, when |
play_sound |
Play a sound at the end of the timer? If |
session |
The reactive |
Value
Invisibly returns the options sent to update the countdown timer(s).
See Also
Other Shiny functions:
countdown_action()
,
countdown_app()
,
countdown_shiny_example()