Interactively change the selectInput choices

后端 未结 3 1271
滥情空心
滥情空心 2020-12-07 21:12

Originally I create this shiny interface that takes in a parameter \"company id\" and \"date\", but here we have a problem: most people dont know the companies we work with

3条回答
  •  青春惊慌失措
    2020-12-07 21:34

    Reply from Rstudio's JC:

    Sure, just use a textInput for the search string, and use renderUI/uiOutput to make a dynamic selectInput. Then the rest of your code can depend on the selectInput's value. (Make sure to check for NULL or whatever when reading the selectInput value, because it will start out with no value.)

提交回复
热议问题