setInput: Set input

View source: R/react.R

setInputR Documentation

Set input

Description

Creates a handler which can be used for onChange and similar props of 'React' components to set the value of a 'Shiny' input to one of the arguments passed to the handler.

Usage

setInput(inputId, argIdx = 1)

Arguments

inputId

'Shiny' input ID to set the value on.

argIdx

Index of the argument to use as value.

Value

A ReactData object which can be passed as a prop to 'React' components.


shiny.react documentation built on Dec. 28, 2022, 3:07 a.m.