setInput | R Documentation |
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.
setInput(inputId, argIdx = 1)
inputId |
'Shiny' input ID to set the value on. |
argIdx |
Index of the argument to use as value. |
A ReactData
object which can be passed as a prop to 'React' components.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.