【发布时间】:2020-03-11 10:50:17
【问题描述】:
我正在尝试修改Shiny 中的搜索栏,例如我们可以在pickerInput 中键入内容或他的标题。
代码示例:
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
pickerInput(
inputId = "pick", label = "Selected",
choices = split(c("Choice 1" = "Value 1", "Choice 2" = "Value 2"), c("First", "Other")),
multiple = TRUE,
options = list( `live-search` = TRUE)
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
这种方式是想在搜索栏中输入文本Choice 2 或Other 并获得第二个输入。但是对Other 的研究没有结果。
隐藏标题但可以搜索的答案可能会被接受。
任何帮助将不胜感激。
【问题讨论】:
标签: r shiny bootstrap-select selectinput pickerinput