timerHandler: Add an handler that triggers every intervalMs milliseconds

View source: R/addHandler.r

timerHandlerR Documentation

Add an handler that triggers every intervalMs milliseconds

Description

Add an handler that triggers every intervalMs milliseconds

Usage

timerHandler(id, intervalMs, fun, ..., app = getApp(), on.create = FALSE,
  if.handler.exists = c("replace", "add", "skip")[1], verbose = FALSE,
  session = getAppSession(app))

Arguments

id

name of the input element

fun

function that will be called if the input value changes. The function will be called with the arguments: 'id', 'value' and 'session'. One can assign the same handler functions to several input elements.

...

extra arguments that will be passed to fun when the event is triggered.


skranz/shinyEvents documentation built on Jan. 1, 2023, 9:25 a.m.