Change the value of a picker input on the client
1 2 | updatePickerInput(session, inputId, label = NULL, selected = NULL,
choices = NULL, choicesOpt = NULL)
|
session |
The session object passed to function given to shinyServer. |
inputId |
The id of the input object. |
label |
Display a text in the center of the switch. |
selected |
The initially selected value (or multiple values if multiple = TRUE). If not specified then defaults to the first value for single-select lists and no values for multiple select lists. |
choices |
List of values to select from. If elements of the list are named then that name rather than the value is displayed to the user. |
choicesOpt |
Options for choices in the dropdown menu |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.