Force no default selection in selectInput()

前端 未结 6 1154
别跟我提以往
别跟我提以往 2021-02-01 02:17

The Shiny documentation mentions that for selectInput():

selected The value (or, if none was supplied, the title) of the naviga

6条回答
  •  遥遥无期
    2021-02-01 02:41

    I think you can get around it by adding an empty string to your choice list:

    selectInput("app", 
    "Select App:", 
    choices = c("", as.character(mtrl_name)), 
    selected = NULL, 
    multiple = FALSE)
    

提交回复
热议问题