columnSelector module server logic
columnSelector(
input,
output,
session,
type.columns,
type = NULL,
column.type.label = "Type of Column",
label.label = "Label",
multiple = TRUE,
none = FALSE,
sep = ", ",
suffix = NULL
)
Shiny's input object
Shiny's output object
Shiny's session object
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
The type (contrast/group/sample of the type dropdown menu, selected in step 1 (upper dropdown). Defaults to unique(type.columns[,2]) (Supports reactive)
Changes the label of the first UI element
Change label above label text input.
Boolean value whether multiple values can be selected in second selector. (Default = TRUE)
If TRUE adds "None to secondSelector and select is. (Default = FALSE)
Used to separate labels on multi value selection.
Added to label only on multiple = FALSE (supports reactive). Also uses sep as separator.
Returns the input. As named list: names("type", "selected_columns", "label")