selectChangeHandler: Add an handler to an input or select that is called when the...

View source: R/events.r

selectChangeHandlerR Documentation

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

Description

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

Usage

selectChangeHandler(id, fun, ..., eventId = "selectChangeHandlerEvent",
  jscript = selectChangeHandlerJS(eventId), app = getApp())

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.