columnSelector: columnSelector module server logic

Description Usage Arguments Value

View source: R/columnSelector.R

Description

columnSelector module server logic

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
columnSelector(
  input,
  output,
  session,
  type.columns,
  type = NULL,
  column.type.label = "Type of Column",
  label.label = "Label",
  multiple = TRUE,
  none = FALSE,
  sep = ", ",
  suffix = NULL
)

Arguments

input

Shiny's input object

output

Shiny's output object

session

Shiny's session object

type.columns

data.table: (Supports reactive) key = columnnames (id) level = datalevel/ type of column label = optional, used instead of id sub_label = optional, added to id/ label

type

The type (contrast/group/sample of the type dropdown menu, selected in step 1 (upper dropdown). Defaults to unique(type.columns[,2]) (Supports reactive)

column.type.label

Changes the label of the first UI element

label.label

Change label above label text input.

multiple

Boolean value whether multiple values can be selected in second selector. (Default = TRUE)

none

If TRUE adds "None to secondSelector and select is. (Default = FALSE)

sep

Used to separate labels on multi value selection.

suffix

Added to label only on multiple = FALSE (supports reactive). Also uses sep as separator.

Value

Returns the input. As named list: names("type", "selected_columns", "label")


loosolab/wilson documentation built on Nov. 16, 2021, 3:21 p.m.