简体   繁体   中英

create a resizable selectInput window in shiny app

I saw a shiny app, here which uses a resizable selectInput but couldn't figure out how it's been developed. I wonder if anybody has any idea?

在此处输入图像描述

library(shiny)

css <- "select {resize: vertical; overflow: auto;}"

shinyApp(
  
  ui = fluidPage(
    tags$head(tags$style(HTML(css))),
    selectInput(
      "variable", "Variable:", names(mtcars), selectize = FALSE, size = 5L
    )
  ),
  
  server = function(input, output) {
    
  }
  
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM