我正在使用selectizeInput来获取自动完成词的列表,如下面的应用程序中所示。从selectize获取不完整的输入输入
server <- function(input, output) {
output$word <- renderText({
input$selInp
})
}
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
selectizeInput('selInp', label ='',
selected = 'like',
choices = c('like','eat','apples','bananas'))
),
textOutput('word')
)
)
shinyApp(ui = ui, server = server)
的东西,我想能够做的就是采取不匹配choices
以及输出。所以如果我写“橙”,我想能够在textOutput
中显示它。有没有办法告诉selectizeInput
不要对它所需的输入做出如此的选择?
喜欢这个? http://stackoverflow.com/questions/32223770/r-shiny-selectize-js-item-creation –