selectInput3: Create a side-by-side selectInput

Description Usage Arguments Examples

View source: R/textInput3.R

Description

Create a side-by-side selectInput

Usage

1

Arguments

...

arguments to be passed to selectInput

width

The width of the input in pixel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
  ui <- fluidPage(
         selectInput3("sex", "sex", choices=c("Male","Female")),
         selectInput3("smoking", "smokingStatus", choices=c("Never","Ex-smoker","Smoker"))
    )
    server <- function(input, output) {

    }
    shinyApp(ui, server)
}

Example output



editData documentation built on April 2, 2021, 5:06 p.m.