select_server: Select module Server

Description Usage Arguments Value

View source: R/select.R

Description

A select list module UI that can accept dynamic inputs on the server-side declaration

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
select_server(
  input,
  output,
  session,
  label = "Choose a metric:",
  choices = c("Test Selection", "Test Selection 1", "Test Selection 2",
    "Test Selection 3"),
  updateVal = NA,
  trig,
  idx = 5,
  multiple = F
)

Arguments

input

list of inputs used in the shiny application session

output

list of outputs used the shiny application session

session

The shiny app session object

label

The label of the selectInput function. Converted to reactive later for enabling encapsulation

choices

The choices of the selectInput function. Converted to reactive later for enabling encapsulation

updateVal

The reactive function used to update the value of the select UI

trig

The function used to trigger the value update

idx

The index of which choice should be selected.

multiple

The multiple option of the selectInput function. Converted to reactive later for enabling encapsulation

Value

Character. Select list value


HarryRosen/hrimodules documentation built on Jan. 11, 2022, 12:36 a.m.