Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
418 views
in Technique[技术] by (71.8m points)

R Shiny dynamic generated multiple selection grid

I have a simple Shiny App that uses selectInput:

Code:

library(shiny)
ui <- fluidPage(
    selectInput("select", label = h3("Select box"), 
                choices = list("Choice 1" = 1, "Choice 2" = 2, "Choice 3" = 3), 
                selected = 1),
)
server <- function(input, output, session) {
    output$value <- renderPrint({ input$select })
    }
shinyApp(ui, server)

I want to evolve it to create a Selection grid that should like like this:

enter image description here

So the idea is to create a Multiple choice grid that will show "n" rows depending on how many cars I have in a list, so if the list is 5 elements long then I'll get 5 lines.

Is this possible with Shiny Widgets or should I try something else?

Thx!

question from:https://stackoverflow.com/questions/65949251/r-shiny-dynamic-generated-multiple-selection-grid

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...