select_input: Create selector for a shiny app

Description Usage Arguments Details Value Examples

View source: R/select_input.R

Description

select_input() creates a specified shiny UI input.

Usage

1
select_input(inputId, label, choices, type)

Arguments

inputId

A shiny input ID

label

A label for the input

choices

A vector of choices for the input

type

The type of input, select for selectInput, multiple for selectInput multiple = TRUE, and checkbox for checkboxGroupInput

Details

This function allows multiple different types of shiny UI input widgets to be created depending on the value of type

Value

A shiny widget that allows user to select from a list of choices

Examples

1
select_input("color", "Color By:", c("None", "Temp", "Day/Night"), "select")

ahvickers/accidenttracker documentation built on Dec. 18, 2021, 11:26 p.m.