radioButtons3: Create a side-by-side radioButtons

Description Usage Arguments Examples

View source: R/textInput3.R

Description

Create a side-by-side radioButtons

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
radioButtons3(
  inputId,
  label,
  choices,
  bg = NULL,
  labelwidth = 100,
  inline = FALSE,
  align = "right",
  ...
)

Arguments

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

choices

List of values to select from

bg

The color of text

labelwidth

The width of the label in pixel

inline

If TRUE, render the choices inline (i.e. horizontally)

align

text align of label

...

arguments to be passed to radioButtons

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
  ui <- fluidPage(
         label3("Welcome"),
         radioButtons3("mydata", "mydata", choices=c("mtcars","iris")),
         verbatimTextOutput("value")
  )
  server <- function(input, output) {
        output$value <- renderText({ input$mydata })
  }
  shinyApp(ui, server)
}

cardiomoon/editData documentation built on July 18, 2021, 2:53 p.m.