Learn R Programming

yonder (version 0.0.5)

buttonGroupInput: Button group inputs

Description

A set of buttons with custom values.

Usage

buttonGroupInput(id, labels, values = labels, ...)

Arguments

id

A character string specifying the id of the reactive input.

labels

A character vector of labels, a button is added to the group for each label specified.

values

A character vector of values, one for each button specified, defaults to labels.

...

Additional named arguments passed as HTML attributes to the parent element.

See Also

Other inputs: buttonInput, checkboxInput, chipInput, fileInput, formInput, groupInput, listGroupInput, menuInput, navInput, radioInput, rangeInput, selectInput, sliderInput, textInput

Examples

Run this code
# NOT RUN {
### Default input

buttonGroupInput(
  id = "group1",
  labels = c("Once", "Twice", "Thrice"),
  values = c(1, 2, 3)
)

### Styling the button group

buttonGroupInput(
  id = "group2",
  labels = c("Button 1", "Button 2", "Button 3")
) %>%
  background("blue") %>%
  width("1/3")

# }

Run the code above in your browser using DataLab