switch_server: Switch module Server

Description Usage Arguments Value

View source: R/switch.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
switch_server(
  input,
  output,
  session,
  label = "",
  onLabel = "Transaction Store",
  offLabel = "Primary Store",
  value = F,
  on = T,
  off = 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 switchInput function. Converted to reactive later for enabling encapsulation

onLabel

The label of the switchInput function's on position.

offLabel

The label of the switchInput function's off position.

value

The default value for the switchInput function.

on

The on value for the switchInput choices.

off

The off value for the switchInput choices.

Value

Numeric or Character. Radio buttons selected value


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