Skip to contents

picker() is a function to create a picker input for a Shiny app.

Usage

picker(
  id,
  label,
  choices,
  selected = choices,
  multiple = TRUE,
  count_threshold = 3,
  choice_options = NULL,
  ...
)

Arguments

id

Input ID for the picker

label

Label for the picker

choices

Choices for the picker

selected

Selected choices

multiple

Are multiple selections allowed?

count_threshold

Threshold for displaying count of selected items, default is 3.

choice_options

Passed through to shinyWidgets::pickerInput()'s choicesOpt argument.

...

Additional arguments passed to shinyWidgets::pickerInput().

Value

A select input control that can be added to the app's UI.