changeHandler: Add an handler to an input that is called when the input...

View source: R/addHandler.r

changeHandlerR Documentation

Add an handler to an input that is called when the input value changes

Description

Add an handler to an input that is called when the input value changes

Usage

changeHandler(id, fun, ..., app = getApp(), on.create = FALSE,
  if.handler.exists = c("replace", "add", "skip")[1],
  session = getAppSession(app), no.authentication.required = FALSE)

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.